生成不了???????
代码生成器
IDEA Settings --> Plugins --> Install plugin from disk --> wk-code-ideaplugin.jar
创建实体类,必须有@Table,若字段需生成到模板页面则需加 @Comment 字段备注(注意命名规范和大小写)
编译wk-web项目,使其打包发布至 target/ 目录(目的是让代码生成器可读取到class文件)
在实体类里鼠标右击,Code(Alt+Insert/Mouse Right) --> Generate --> wk mvc
[INFO ] 18:59:23.612 org.nutz.ioc.impl.NutIoc.depose(NutIoc.java:287) - org.nutz.ioc.impl.NutIoc@1144068272 is closing. startup date [18-07-18 18:59:22.784]
[INFO ] 18:59:23.612 org.nutz.ioc.impl.NutIoc.depose(NutIoc.java:301) - org.nutz.ioc.impl.NutIoc@1144068272 is deposed. startup date [18-07-18 18:59:22.784]
[DEBUG] 18:59:23.612 cn.wizzer.commons.code.Generator.main(Generator.java:252) - done!
Disconnected from the target VM, address: '127.0.0.1:64525', transport: 'socket'
Process finished with exit code 0