Например, когда я использую:
Я хочу, чтобы он был сопоставлен с каталогом «/static» проекта независимо от того, является ли запрос страницы «/home» или «/home/product».
Файл pom.xml в моем проекте:
Код: Выделить всё
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
com.springmvc
bookstore
1.0.0
war
5.2.22.RELEASE
5.2.15.RELEASE
org.springframework
spring-webmvc
${spring.version}
org.springframework
spring-jdbc
${spring.version}
mysql
mysql-connector-java
8.0.33
javax.servlet
javax.servlet-api
4.0.1
provided
javax.servlet
jsp-api
2.0
provided
jstl
jstl
1.2
org.springframework.security
spring-security-core
${spring-security.version}
org.springframework.security
spring-security-web
${spring-security.version}
org.springframework.security
spring-security-config
${spring-security.version}
org.apache.maven.plugins
maven-compiler-plugin
3.6.0
1.8
1.8
Код: Выделить всё
Подробнее здесь: https://stackoverflow.com/questions/783 ... spring-mvc
Мобильная версия