I\'m trying to run Spring Boot sample application. And I added couple of images in \"images\" folder under webapp folder (same level as WEB-INF).
I created executabl
This is covered in the documentation about static resources:
Do not use the
src/main/webapp
folder if your application will be packaged as a jar. Although this folder is a common standard, it will only work with war packaging and it will be silently ignored by most build tools if you generate a jar.
You should place your static resources in src/main/resources
instead.
Follow the given structure to create fat jar :
Demo
└── src
| ├── main
| │ ├── java
| │ │ └── org
| │ │ └── demo
| │ │ └── App.java
| │ └── resources
| │ └── application.properties
| | |
| | └── META-INF
| | | └── resources
| | | └── jsp
| | └── static
| | └── css
| | └── js
| |
| └── test
| └── java
| └── org
| └── demo
| └── App.java
├──── pom.xml