记录 tk.mybatis.mapper.generator.TemplateFilePlugin templatePath 的坑

generatorConfiguration.xml 配置文件

PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">;



    
    

    
        
        























value="tk.mybatis.mapper.generator.formatter.FreemarkerTemplateFormatter"/>

    

    
    
        
        
        
        
        
        
        
        
    

    
    
        
        
        
        
        
        
        
        
    

    
    

    

    



    
    

坑:
必须加 file: 路径相对路径 不能写成:generator/template/mapper.ftl

参考 :https://github.com/abel533/Mapper/tree/master/generator
https://github.com/abel533/Mapper/issues/543