运行春季启动应用程序时出现NullPointerException异常,它由一个Maven多模块项目组成,其中我具有Domain层,Persistence层和Web层。我没有逻辑或bean,只是一个简单的Main @SpringBootApplication类来启动服务器。结构主要的@SpringBootApplicationpublic class Aplication { public static void main(final String[] args) { SpringApplication.run(Aplication.class, args); }}
1 回答
![?](http://img1.sycdn.imooc.com/545864190001966102200220-100-100.jpg)
犯罪嫌疑人X
TA贡献2080条经验 获得超4个赞
添加依赖项之类的。
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
或与数据库相关的依赖项。
添加回答
举报
0/150
提交
取消