Raver | f79fdb6 | 2025-06-03 06:02:49 +0000 | [diff] [blame] | 1 | package api; |
| 2 | |
| 3 | import org.springframework.boot.SpringApplication; |
| 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| 5 | |
| 6 | @SpringBootApplication |
| 7 | public class ApiApplication { |
| 8 | public static void main(String[] args) { |
| 9 | SpringApplication.run(ApiApplication.class, args); |
| 10 | } |
Raver | aae0612 | 2025-06-05 08:13:35 +0000 | [diff] [blame^] | 11 | |
| 12 | // @Bean |
| 13 | // public WebMvcConfigurer corsConfigurer() { |
| 14 | // return new WebMvcConfigurer() { |
| 15 | // @Override |
| 16 | // public void addCorsMappings(CorsRegistry registry) { |
| 17 | // registry.addMapping("/**") |
| 18 | // .allowedOrigins("*") |
| 19 | // .allowedMethods("*") |
| 20 | // .allowedHeaders("*") |
| 21 | // .exposedHeaders(HttpHeaders.CONTENT_DISPOSITION); |
| 22 | // } |
| 23 | // }; |
| 24 | // } |
Raver | f79fdb6 | 2025-06-03 06:02:49 +0000 | [diff] [blame] | 25 | } |