启动后访问html页面 报错:
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Mon Dec 07 11:30:36 CST 2020
There was an unexpected error (type=Not Found, status=404).
No message available
原因:
idea启动后 target中没有生成对应的html文件
解决办法:
在pom.xml文件中添加
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.*</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.*</include>
</includes>
</resource>
</resources>
</build>