默认关闭 .json、.xml 后缀匹配,请使用 __ajax=json、__ajax=xml
参数名称匹配,因为后缀匹配已不被推荐使用。https://github.com/spring-projects/spring-framework/issues/24179
This commit is contained in:
@@ -461,6 +461,11 @@ web:
|
||||
# 引入页面头部:'/themes/'+themeName+'/include/header.html'
|
||||
# 引入页面尾部:'/themes/'+themeName+'/include/footer.html'
|
||||
themeName: default
|
||||
|
||||
# 使用 .json、.xml 后缀匹配视图(不推荐使用,推荐使用 favorParameter)
|
||||
favorPathExtension: false
|
||||
# 使用 __ajax=json、__ajax=xml 参数名匹配视图
|
||||
favorParameter: true
|
||||
|
||||
# MVC 拦截器
|
||||
interceptor:
|
||||
|
||||
Reference in New Issue
Block a user