我是靠谱客的博主 危机音响,这篇文章主要介绍无法解析MVC视图,现在分享给大家,希望可以做个参考。

问题描述:idea无法解析MVC视图
分析:
1.检查依赖:

<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-freemarker</artifactId>
        </dependency>

2.检查配置文件:
注意template-loader-path的路径配置,看你的ftl文件是否在该文件夹下

 freemarker:
        cache: false
        charset: utf-8
        expose-request-attributes: true
        expose-session-attributes: true
        suffix: .ftl
        template-loader-path: classpath:/templates/
    resources:
        static-locations: classpath:/static/

最后

以上就是危机音响最近收集整理的关于无法解析MVC视图的全部内容,更多相关无法解析MVC视图内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(122)

评论列表共有 0 条评论

立即
投稿
返回
顶部