如题,有大神弄过吗,网上找不到这类资料啊

解决方案 »

  1.   

    http://freeer.foofun.cn/dgui_misc_alternativesyntax.html
      

  2.   

    自己配置一下就可以
    /**
     * <p>Description: </p>
     * <p> </p>
     *
     * @author: hansai
     * @date: 2018/5/28
     * @time: 下午3:37
     */
    @Component
    public class FreeerConfig {
        @Autowired
        private FreeMarkerConfigurer freeMarkerConfigurer;    @PostConstruct
        public void setSharedVariable() throws TemplateModelException {
    //1位 <>   0 为 [] 
            freeMarkerConfigurer.getConfiguration().setTagSyntax(0);
        }
    }
      

  3.   

    写在你有@ComponentScan注解的包下,如Application.java 所在包下