【Java】SpringBoot项目起不来

. _
/\ / ' _(_) _ \
( ( )__ | ' | '_| | '_ / _` | \
\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |___, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.5.6.RELEASE)

2018-05-28 17:17:11.756 INFO 6788 --- [ main] com.wlc.DemoApplication : Starting DemoApplication on X6X8-20180416YV with PID 6788 (F:stspacewlc-security-demotargetclasses started by Administrator in F:stspacewlc-security-demo)
2018-05-28 17:17:11.760 INFO 6788 --- [ main] com.wlc.DemoApplication : No active profile set, falling back to default profiles: default
2018-05-28 17:17:11.815 INFO 6788 --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.spring[email protected]6b53e23f: startup date [Mon May 28 17:17:11 CST 2018]; root of context hierarchy
2018-05-28 17:17:12.201 INFO 6788 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
2018-05-28 17:17:12.380 INFO 6788 --- [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2018-05-28 17:17:12.959 INFO 6788 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
2018-05-28 17:17:12.974 INFO 6788 --- [ main] com.wlc.DemoApplication : Started DemoApplication in 1.451 seconds (JVM running for 2.116)
2018-05-28 17:17:12.988 INFO 6788 --- [ Thread-4] s.c.a.AnnotationConfigApplicationContext : Closing org.spring[email protected]6b53e23f: startup date [Mon May 28 17:17:11 CST 2018]; root of context hierarchy
2018-05-28 17:17:12.990 INFO 6788 --- [ Thread-4] o.s.j.e.a.AnnotationMBeanExporter : Unregistering JMX-exposed beans on shutdown

【Java】SpringBoot项目起不来

【Java】SpringBoot项目起不来

回答

No active profile set没有属性文件

resource目录下加上application.properties
里面定义端口号,比如server.port=8080

Multiple Spring Data modules found, entering strict repository configuration mode!
这句话是关键,你应该在pom文件配置了数据库连接相关的依赖(比如mybatis),但是你又木有配置prop文件。
解决方案:注掉数据库相关依赖,或者配置数据库连接

快使用intellij哼哼哈嘿

以上是 【Java】SpringBoot项目起不来 的全部内容, 来源链接: utcz.com/a/91020.html

回到顶部