方法一:
在application.yml
写
1 | spring: |
或者在application.properties写
1 | spring.mvc.pathmatch.matching-strategy=ant_path_matcher |
方法二:
在启动类Application加上
1 |
|
原因很简单,Spring Boot干掉了双斜杠。
在application.yml
写
1 | spring: |
或者在application.properties写
1 | spring.mvc.pathmatch.matching-strategy=ant_path_matcher |
方法二:
在启动类Application加上
1 |
|
原因很简单,Spring Boot干掉了双斜杠。