Skip to content

Commit 8a7f73a

Browse files
committed
默认关闭 .json、.xml 后缀匹配,请使用 __ajax=json、__ajax=xml
参数名称匹配,因为后缀匹配已不被推荐使用。spring-projects/spring-framework#24179
1 parent 5fc5e49 commit 8a7f73a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/core/src/main/resources/config/jeesite-core.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,11 @@ web:
461461
# 引入页面头部:'/themes/'+themeName+'/include/header.html'
462462
# 引入页面尾部:'/themes/'+themeName+'/include/footer.html'
463463
themeName: default
464+
465+
# 使用 .json、.xml 后缀匹配视图(不推荐使用,推荐使用 favorParameter)
466+
favorPathExtension: false
467+
# 使用 __ajax=json、__ajax=xml 参数名匹配视图
468+
favorParameter: true
464469

465470
# MVC 拦截器
466471
interceptor:

0 commit comments

Comments
 (0)