After springboot packaged static resources webapp folder can not be packaged into

1. FIG follows webapp folder directory structure and peer resources folder. After using mvn clean install packaged project started visit, static resources page 404.

 

 2. reasons, springboot packing time to specify the load path static resources, I add the following configuration in the pom file, you can re-packaged normal static files.

 

Guess you like

Origin www.cnblogs.com/javazxy/p/12088121.html