spring boot 无法启动问题

时间:2021-12-05 18:33:48
以下是启动日志  不明白为什么启动不了,求助
2018-03-11 16:00:15.409  INFO 5264 --- [           main] c.r.miniAppApi.MiniAppApiApplication     : Starting MiniAppApiApplication on DESKTOP-9KSGPR9 with PID 5264 (C:\JavaStudy\miniApp\miniAppApi\out\production\classes started by What's fuck in C:\JavaStudy\miniApp\miniAppApi)
2018-03-11 16:00:15.429  INFO 5264 --- [           main] c.r.miniAppApi.MiniAppApiApplication     : No active profile set, falling back to default profiles: default
2018-03-11 16:00:15.626  INFO 5264 --- [           main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@17923a5: startup date [Sun Mar 11 16:00:15 CST 2018]; root of context hierarchy
2018-03-11 16:00:18.593  INFO 5264 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$9fd323f2] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-03-11 16:00:19.795  INFO 5264 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 80 (http)
2018-03-11 16:00:19.833  INFO 5264 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2018-03-11 16:00:19.833  INFO 5264 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet Engine: Apache Tomcat/8.5.27
2018-03-11 16:00:20.133  INFO 5264 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2018-03-11 16:00:20.133  INFO 5264 --- [ost-startStop-1] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 4524 ms
2018-03-11 16:00:20.466  INFO 5264 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean  : Mapping servlet: 'dispatcherServlet' to [/]
2018-03-11 16:00:20.466  INFO 5264 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'characterEncodingFilter' to: [/*]
2018-03-11 16:00:20.466  INFO 5264 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2018-03-11 16:00:20.466  INFO 5264 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2018-03-11 16:00:20.466  INFO 5264 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'requestContextFilter' to: [/*]
2018-03-11 16:00:22.136  INFO 5264 --- [           main] j.LocalContainerEntityManagerFactoryBean : Building JPA container EntityManagerFactory for persistence unit 'default'
2018-03-11 16:00:22.152  INFO 5264 --- [           main] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [
name: default
...]
2018-03-11 16:00:22.536  INFO 5264 --- [           main] org.hibernate.Version                    : HHH000412: Hibernate Core {5.0.12.Final}
2018-03-11 16:00:22.552  INFO 5264 --- [           main] org.hibernate.cfg.Environment            : HHH000206: hibernate.properties not found
2018-03-11 16:00:22.552  INFO 5264 --- [           main] org.hibernate.cfg.Environment            : HHH000021: Bytecode provider name : javassist
2018-03-11 16:00:22.721  INFO 5264 --- [           main] o.hibernate.annotations.common.Version   : HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
2018-03-11 16:00:23.267  INFO 5264 --- [           main] org.hibernate.dialect.Dialect            : HHH000400: Using dialect: org.hibernate.dialect.MySQL5Dialect
2018-03-11 16:00:24.568  INFO 5264 --- [           main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2018-03-11 16:02:44.137  INFO 5264 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/library/list/{page}/{size}/{peryearId}],methods=[GET]}" onto public org.springframework.http.ResponseEntity<com.rkplus.miniAppApi.common.JsonResult> com.rkplus.miniAppApi.controller.ExerciseLibraryController.getExerciseLibraryList(int,int,java.lang.String)
2018-03-11 16:02:44.230  INFO 5264 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/peryear/list/{subjectId}/{classId}],methods=[GET]}" onto public org.springframework.http.ResponseEntity<com.rkplus.miniAppApi.common.JsonResult> com.rkplus.miniAppApi.controller.ExercisePeryearController.getExerciseLibraryList(java.lang.String,java.lang.String)
2018-03-11 16:02:44.535  INFO 5264 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/subject/list],methods=[GET]}" onto public org.springframework.http.ResponseEntity<com.rkplus.miniAppApi.common.JsonResult> com.rkplus.miniAppApi.controller.SubjectController.getSubjectList()
2018-03-11 16:02:44.680  INFO 5264 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/test/user/{id}],methods=[GET]}" onto public org.springframework.http.ResponseEntity<com.rkplus.miniAppApi.common.JsonResult> com.rkplus.miniAppApi.controller.TestTableController.getUserById(java.lang.Integer)
2018-03-11 16:02:44.881  INFO 5264 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/users],methods=[POST]}" onto public java.lang.String com.rkplus.miniAppApi.controller.UserController.postUser(com.rkplus.miniAppApi.pojo.User)
2018-03-11 16:02:44.928  INFO 5264 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/users/{id}],methods=[GET]}" onto public com.rkplus.miniAppApi.pojo.User com.rkplus.miniAppApi.controller.UserController.getUser(java.lang.Long)
2018-03-11 16:02:44.973  INFO 5264 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/users/{id}],methods=[PUT]}" onto public java.lang.String com.rkplus.miniAppApi.controller.UserController.putUser(java.lang.Long,com.rkplus.miniAppApi.pojo.User)
2018-03-11 16:02:45.025  INFO 5264 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/users/{id}],methods=[DELETE]}" onto public java.lang.String com.rkplus.miniAppApi.controller.UserController.deleteUser(java.lang.Long)
2018-03-11 16:02:45.072  INFO 5264 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/users],methods=[GET]}" onto public java.util.List<com.rkplus.miniAppApi.pojo.User> com.rkplus.miniAppApi.controller.UserController.getUserList()
2018-03-11 16:02:45.344  INFO 5264 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/v2/api-docs],methods=[GET],produces=[application/json || application/hal+json]}" onto public org.springframework.http.ResponseEntity<springfox.documentation.spring.web.json.Json> springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest)
2018-03-11 16:02:45.873  INFO 5264 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/swagger-resources/configuration/ui]}" onto org.springframework.http.ResponseEntity<springfox.documentation.swagger.web.UiConfiguration> springfox.documentation.swagger.web.ApiResourceController.uiConfiguration()
2018-03-11 16:02:46.184  INFO 5264 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/swagger-resources]}" onto org.springframework.http.ResponseEntity<java.util.List<springfox.documentation.swagger.web.SwaggerResource>> springfox.documentation.swagger.web.ApiResourceController.swaggerResources()
2018-03-11 16:02:46.368  INFO 5264 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/swagger-resources/configuration/security]}" onto org.springframework.http.ResponseEntity<springfox.documentation.swagger.web.SecurityConfiguration> springfox.documentation.swagger.web.ApiResourceController.securityConfiguration()
2018-03-11 16:02:47.154  INFO 5264 --- [           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.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2018-03-11 16:02:47.190  INFO 5264 --- [           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.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)

1 个解决方案

#1


检查一下,启动类里面有没有配置dao的扫描路径,另外,controller,service,dao这些包都得在启动类所在的包里或者启动类所在的字包

#1


检查一下,启动类里面有没有配置dao的扫描路径,另外,controller,service,dao这些包都得在启动类所在的包里或者启动类所在的字包