|
|
@@ -6,7 +6,6 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
|
|
|
import org.springframework.cloud.openfeign.EnableFeignClients;
|
|
|
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
|
|
-import org.springframework.web.servlet.config.annotation.CorsRegistry;
|
|
|
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
|
|
|
|
|
|
@SpringBootApplication
|
|
|
@@ -15,19 +14,10 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
|
|
|
@EnableTransactionManagement
|
|
|
@EnableFeignClients("com.usoftchina.saas")
|
|
|
@MapperScan("com.usoftchina.saas.document.mapper")
|
|
|
-public class DocumentApplication extends WebMvcConfigurerAdapter {
|
|
|
+public class DocumentApplication{
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
SpringApplication.run(DocumentApplication.class);
|
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
- public void addCorsMappings(CorsRegistry registry) {
|
|
|
- registry.addMapping("/**")
|
|
|
- .allowCredentials(true)
|
|
|
- .allowedHeaders("*")
|
|
|
- .allowedOrigins("*")
|
|
|
- .allowedMethods("*");
|
|
|
- }
|
|
|
-
|
|
|
}
|