收藏246
分享
阅读11911
更新时间2022-04-11
下载扩展工具源码(YMP框架Maven扩展工具项目地址)
执行命令:git clone https://git.oschina.net/suninformation/ymate-maven-extension.git
编译并安装到本地Maven仓库
执行命令: cd ymate-maven-extension mvn clean install
ymate-maven-plugin插件net.ymate.maven.plugins ymate-maven-plugin 1.0-SNAPSHOT
在工程根路径下执行命令:
mvn ymate:entity
输出内容:
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 [INFO] Scanning for projects... [INFO] ......(此处省略若干字) [INFO] --- ymate-maven-plugin:1.0-SNAPSHOT:entity (default-cli) @ ymp-examples-webapp --- 三月 25, 2016 12:25:07 上午 net.ymate.platform.core.YMP init 信息: __ ____ __ ____ ____ \ \ / / \/ | _ \ __ _|___ \ \ V /| |\/| | |_) | \ \ / / __) | | | | | | | __/ \ V / / __/ |_| |_| |_|_| \_/ |_____| Website: http://www.ymate.net/ 三月 25, 2016 12:25:07 上午 net.ymate.platform.core.YMP init 信息: Initializing ymate-platform-core-2.0.0-GA build-20160324-2339 - debug:true ......(此处省略若干字) 信息: [show tables][][1][13ms] Output file "/Users/suninformation/IdeaProjects/ymate-platform-examples/ymp-examples-webapp/src/main/java/net/ymate/platform/examples/model/User.java". [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.577s [INFO] Finished at: Fri Mar 25 00:25:08 CST 2016 [INFO] Final Memory: 10M/163M [INFO] ------------------------------------------------------------------------
通过插件生成的代码默认放置在src/main/java路径,当数据库表发生变化时,直接执行插件命令就可以快速更新数据实体对象,是不是很更方便呢,大家可以动手尝试一下!:p
相关
视频
RELATED VIDEOS
科技资讯
1
2
3
4
5
6
7
8
9
精选课程
共5课时
17.2万人学习
共49课时
77万人学习
共29课时
61.7万人学习
共25课时
39.3万人学习
共43课时
71万人学习
共25课时
61.6万人学习
共22课时
23万人学习
共28课时
33.9万人学习
共89课时
125万人学习