gpt4 book ai didi

java - Spring + thymeleaf : ResourceManager : unable to find resource 'index.vm' in any resource loader

转载 作者:太空宇宙 更新时间:2023-11-04 13:34:46 37 4
gpt4 key购买 nike

我正在使用 Spring Boot + Thymeleaf。我不明白为什么我在每个请求上都会收到此错误: ResourceManager : unable to find resource 'xxxx.vm' in any resource loader.其中 xxxx 是 View 名称。在 application.properties 中设置它不会有帮助: spring.velocity.checkTemplateLocation=false

最佳答案

在配置类中设置此项将有所帮助:@EnableAutoConfiguration(exclude = { DataSourceAutoConfiguration.class,VelocityAutoConfiguration.class })

关于java - Spring + thymeleaf : ResourceManager : unable to find resource 'index.vm' in any resource loader,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31812481/

37 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com