:: Spring Boot :: (v2.0.1.RELEASE)
2018-04-15 20:52:56.778 INFO 7476 --- [ main] com.example.demo.Demo1Application : Starting Demo1Application on LAPTOP-4VDF7TDA with PID 7476 (started by admin in D:\Spring tool\work\demo-1)
2018-04-15 20:52:56.780 INFO 7476 --- [ main] com.example.demo.Demo1Application : No active profile set, falling back to default profiles: default
2018-04-15 20:52:56.807 INFO 7476 --- [ main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@37e547da: startup date [Sun Apr 15 20:52:56 GMT+08:00 2018]; root of context hierarchy
2018-04-15 20:52:57.407 ERROR 7476 --- [ main] o.a.catalina.core.AprLifecycleListener : An incompatible version [1.1.33] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14]
2018-04-15 20:52:57.452 INFO 7476 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2018-04-15 20:52:57.460 ERROR 7476 --- [ main] o.a.catalina.core.AprLifecycleListener : An incompatible version [1.1.33] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14]
2018-04-15 20:52:57.465 INFO 7476 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2018-04-15 20:52:57.465 INFO 7476 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.29
2018-04-15 20:52:57.468 ERROR 7476 --- [ost-startStop-1] o.a.catalina.core.AprLifecycleListener : An incompatible version [1.1.33] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14]
2018-04-15 20:52:57.536 INFO 7476 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2018-04-15 20:52:57.536 INFO 7476 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 731 ms
2018-04-15 20:52:57.619 INFO 7476 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Servlet dispatcherServlet mapped to [/]
2018-04-15 20:52:57.622 INFO 7476 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]
2018-04-15 20:52:57.622 INFO 7476 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2018-04-15 20:52:57.623 INFO 7476 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2018-04-15 20:52:57.623 INFO 7476 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*]
2018-04-15 20:52:57.684 INFO 7476 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-04-15 20:52:57.805 INFO 7476 --- [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@37e547da: startup date [Sun Apr 15 20:52:56 GMT+08:00 2018]; root of context hierarchy
2018-04-15 20:52:57.842 INFO 7476 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2018-04-15 20:52:57.843 INFO 7476 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2018-04-15 20:52:57.858 INFO 7476 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-04-15 20:52:57.859 INFO 7476 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-04-15 20:52:57.957 INFO 7476 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
2018-04-15 20:52:58.133 INFO 7476 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ''
2018-04-15 20:52:58.137 INFO 7476 --- [ main] com.example.demo.Demo1Application : Started Demo1Application in 1.558 seconds (JVM running for 2.158)
2018-04-15 20:53:37.239 ERROR 7476 --- [nio-8080-exec-1] o.a.catalina.core.AprLifecycleListener : An incompatible version [1.1.33] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14]
2018-04-15 20:53:37.248 INFO 7476 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring FrameworkServlet 'dispatcherServlet'
2018-04-15 20:53:37.248 INFO 7476 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': initialization started
2018-04-15 20:53:37.272 INFO 7476 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': initialization completed in 23 ms
楼主你怎么解决的!!!求解
加上后就显示 ERROR 7476 --- [nio-8080-exec-1] o.a.catalina.core.AprLifecycleListener : An incompatible version [1.1.33] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14]
看error报错那行写的大概是,关于tomcat的一个依赖的版本号不正确,建议尝试在本地maven残酷找出那个依赖并删除,嫌麻烦可以直接把整个仓库的jar包删除,重新加载项目,再下载一次jar包。还有,新建工程之后,什么都不写,访问主页就是这样显示的,没问题。你可以写个mvc的controller,返回json,再访问相应的url试试。
访问出现这个