|
|
@@ -17,6 +17,7 @@ import org.springframework.context.annotation.Configuration;
|
|
|
import org.springframework.context.annotation.EnableAspectJAutoProxy;
|
|
|
import org.springframework.context.event.ContextClosedEvent;
|
|
|
import org.springframework.scheduling.annotation.EnableAsync;
|
|
|
+import org.springframework.web.bind.annotation.CrossOrigin;
|
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.Date;
|
|
|
@@ -26,7 +27,8 @@ import java.util.Date;
|
|
|
@EnableAsync
|
|
|
@Configuration
|
|
|
@SpringBootApplication
|
|
|
-@ComponentScan(basePackages = {"com.its.app", "com.its.op.config", "com.its.op.repository.mapper.*", "com.its.op"})
|
|
|
+@ComponentScan(basePackages = {"com.its.op.config", "com.its.op.repository.mapper.*", "com.its.op"})
|
|
|
+@CrossOrigin("*")
|
|
|
public class ItsOpServerApplication implements CommandLineRunner, ApplicationListener<ContextClosedEvent>, InitializingBean, DisposableBean {
|
|
|
|
|
|
private static final String applicationName = "traf-prcs-server";
|