默认关闭 .json、.xml 后缀匹配,请使用 __ajax=json、__ajax=xml

参数名称匹配,因为后缀匹配已不被推荐使用。https://github.com/spring-projects/spring-framework/issues/24179
This commit is contained in:
thinkgem
2020-03-07 17:11:50 +08:00
parent 5fc5e49c2f
commit 8a7f73a7b8

View File

@@ -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: