Browse Source

去掉无用的注释

weihf 7 years ago
parent
commit
dc1338059d

+ 3 - 22
display-server/src/main/java/com/ai/server/springboot/MainModule.java

@ -1,29 +1,16 @@
1 1
package com.ai.server.springboot;
2 2

3 3
import org.springframework.boot.SpringApplication;
4
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
5 4
import org.springframework.boot.autoconfigure.SpringBootApplication;
6
import org.springframework.boot.builder.SpringApplicationBuilder;
7
import org.springframework.boot.context.embedded.FilterRegistrationBean;
8
import org.springframework.boot.context.embedded.ServletListenerRegistrationBean;
9
import org.springframework.boot.context.embedded.ServletRegistrationBean;
10
import org.springframework.boot.context.web.SpringBootServletInitializer;
5
import org.springframework.boot.web.servlet.FilterRegistrationBean;
6
import org.springframework.boot.web.servlet.ServletRegistrationBean;
11 7
import org.springframework.context.annotation.Bean;
12
import org.springframework.web.bind.annotation.RequestMapping;
13
import org.springframework.web.bind.annotation.RestController;
14
import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
15
import org.springframework.web.servlet.DispatcherServlet;
16

17
import com.ai.server.Hi;
18 8

19 9

20 10
@SpringBootApplication
21 11
public class MainModule {
22 12
	
23
//	@Bean
24
//    public ServletRegistrationBean servletRegistrationBean() {
25
//        return new ServletRegistrationBean(new Hi(), "/mobile/*", "/mobiledata/*");// ServletName默认值为首字母小写,即myServlet
26
//    }
13

27 14
	@Bean
28 15
	public ServletRegistrationBean getMobile(){
29 16
	  
@ -56,7 +43,6 @@ public class MainModule {
56 43
    public FilterRegistrationBean indexFilterRegistration() {
57 44
		System.out.println("enter filter........");
58 45
        FilterRegistrationBean registration = new FilterRegistrationBean();
59
        //com.ai.ipu.server.servlet.MobileFilter filter = new com.ai.ipu.server.servlet.MobileFilter();
60 46
        com.ai.ipu.server.servlet.MobileFilter filter = new com.ai.ipu.server.servlet.MobileFilter();
61 47
        registration.setFilter(filter);
62 48
        registration.addUrlPatterns("/mobile");
@ -78,8 +64,3 @@ public class MainModule {
78 64
	}
79 65

80 66
}
81

82
/*
83
public class MainModule {
84
	
85
}*/