en *_*pes 2 java spring spring-mvc maven spring-boot
我已经使用生成的春天启动的Web应用程序Spring Initializer,embedded Tomcat,Thymeleaf template engine,和封装为一个可执行的JAR文件。
使用的技术:
Spring Boot 2.0.0.M6,Java 8,Maven
但是即使我的pom.xml中也有这种依赖关系
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
</dependency>
Run Code Online (Sandbox Code Playgroud)
我的项目中出现此编译错误:
The import org.springframework.boot.autoconfigure.web.ErrorAttributes cannot be resolved
The import org.springframework.boot.autoconfigure.web.ErrorController cannot be resolved
Run Code Online (Sandbox Code Playgroud)
尝试从中导入ErrorController
org.springframework.boot.web.servlet.error.ErrorController
对于ErrorAttributes
导入org.springframework.boot.web.servlet.error.ErrorAttributes;
| 归档时间: |
|
| 查看次数: |
3850 次 |
| 最近记录: |