zoukankan      html  css  js  c++  java
  • freemarker ,DEFAULT_INCOMPATIBLE_IMPROVEMENTS 找不到

    一般出现这种问题的原因是,spring的版本和freemarker不匹配造成的~

    nested exception is org.springframework.beans.factory.BeanCreationException: 
    Error creating bean with name 'freemarkEngine' defined in class path resource [conf/app-resources.xml]: Cannot resolve reference to bean 'freemarkerConfiguration' while setting bean property 'configuration'; 
    nested exception is org.springframework.beans.factory.BeanCreationException: 
    Error creating bean with name 'freemarkerConfiguration' defined in class path resource [conf/app-resources.xml]: 
    Invocation of init method failed; 
    nested exception is java.lang.NoSuchFieldError: DEFAULT_INCOMPATIBLE_IMPROVEMENTS 

    版本不对。使用新版本: 
    <!-- https://mvnrepository.com/artifact/org.freemarker/freemarker --> 
    <dependency> 
    <groupId>org.freemarker</groupId> 
    <artifactId>freemarker</artifactId> 
    <version>2.3.23</version> 
    </dependency> 


    而不是: 
                    <dependency> 
    <groupId>freemarker</groupId> 
    <artifactId>freemarker</artifactId> 
    <version>2.3.9</version> 
    </dependency>

    参考链接:http://feng-tai-jun.iteye.com/blog/2331536

  • 相关阅读:
    我的python菜鸟之路11
    我的SAS菜鸟之路9
    我的python菜鸟之路10
    idea中tomcat9打印日志乱码
    2、dockerfile命令
    1、Docker 打包本地镜像
    1、Centos7下MongoDB下载安装详细步骤
    4、自定义service 服务
    3、杀死某个服务下的多个进程
    3、python导出依赖环境时报错
  • 原文地址:https://www.cnblogs.com/xiohao/p/7687557.html
Copyright © 2011-2022 走看看