1、在yml配置文件里加入:
spring:
main:
allow-circular-references: true
2、能运行看不到网页的把yml配置文件的 resources: static-locations修改为web: resources: static-locations:
文章讲述了如何在Spring的yml配置文件中设置两个关键参数:允许循环引用(allow-circular-references:true)以及调整静态资源的位置(将resources:static-locations改为web:resources:static-locations),以帮助应用正常运行并正确显示网页内容。
1、在yml配置文件里加入:
spring:
main:
allow-circular-references: true
2、能运行看不到网页的把yml配置文件的 resources: static-locations修改为web: resources: static-locations:
1万+
1万+
1270
1234

被折叠的 条评论
为什么被折叠?