- mvn package and get the jar file
- go to idea setting -> EasyCodeMybatisCodeHelper
- configure the external lib path
- add the groovy script
example: D:/code/github/externalLibDemo/target/easycode-utils-1.0.0.jar
groovy script:
param.put('stringHelper', com.bruce.utils.StringHelper.getInstance())- use the external lib in your template
haha = ${stringHelper.toUpperCase($tableInfo.fullColumn.get(0).name)}-
go to file EasyCode -> velocity_implicit.vm file
-
add comment like this:
#* @vtlvariable name="stringHelper" type="com.bruce.utils.StringHelper" *#
https://brucege.com/doc/#/contactMe Or gejun123456@gmail.com