Import Springboot static resources

There are several ways

1.webjars localhost: 8080 / webjars / directory

2.resources; static; public; / ** mapping is localhost: 8080 / resources or public static or

Where the priority relationship: resources> stasic (default)> public

Generally static resources into static

The pictures into public

The importance placed resources in

Unfinished. .

 

Published 21 original articles · won praise 7 · views 20000 +

Guess you like

Origin blog.csdn.net/qq_40662239/article/details/104327962