赞
踩
- </pre>Maven 有很好的扩展性,常用的mybatis 也有maven插件供程序员使用,下面如何在maven 中使用mybatis generator 自动生成代码及映射文件。<p></p><p></p><h3>一、创建一个基本的maven程序</h3><p>src/main/resources 这个文件夹没有的话,可以手动创建</p><p><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASoAAAC7CAYAAADSd9N9AAAgAElEQVR4Ae2df2wUZ5rnn2T3tHfatUOsk+W4IRs4E4PO4yVx04pE5oYxgXhExE9pcKyJIhIpChoktFgoUjTKzKAIiUPmFIkTCCkwEZFxIgUIGxTHjB24HeuiTneS81oigIWzsTEWt+sw9h/7117ued633qq3qutXu6u6q91PSbjfrvfX837frof3favq8z6Um/36R+CDFWAFWIEEK/DwyA8e1k3moPdkDsY9ovk0K8AKsALlUuDhclXE9bACrAArsFgFinBUC3D+w2tw/sFiq+J8rAArwAosToG/tLLNQP/JLOSNEx0ty60oEaqDF3/ZCkdOfQxpeAR6uzfCi8scSfgrK8AKsAIxKGA4qgUY+SALs5lN0NdRh9XQ92H8dDqrx+DN17fDmw9uwSsDH0MfO6wYuoSLZAVYAacCcuo3eROuzC2HLcJJUZI66Mw4nZSWddmTcAYd1sUMQN8ATwc1ZTjICrACMSggRlT35+YBGlLQGLaCyTykP5vG1DwFDCsZp2MFWIHFKyAcVWNDPcDcAtzHcnydlZjy3YAx4aC28xrV4nXnnKwAK1CEAnKNamUzdEAWhvKt0Camf7iwPkgjJn36h3f9hmZgc/d2OMOL6EVIzElZAVagVAUe+u83vv6x81Es5oebcHzgBtwVJS6HvV0AZwcB9u5LQ1uptXB+VoAVYAVKUOAhfoWmBPU4KyvACpRFgSIe+CyLPVwJK8AKsAIFCrCjKpCET7ACrEDSFGBHlbQeYXtYAVagQAF2VAWS8AlWgBVImgLsqJLWI2wPK8AKFCjAjqpAEj7BCrACSVOAHVXSeoTtYQVYgQIF2FEVSMInWAFWIGkKOBwVMalGwBNPXIz19KR7VGUVUy+nZQVYgSWngMNRLbn2cYNYAV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KttrWvtg50khRBx7I6SCEx9D4y1QOPqNtrsL0u4oCvb+AanH8QaAEnYAUSp0CEI6owKGFq/wL8aeLPsGu9tbsMGGtIW9QakiaTQPv6IoFl4qaGxa11uZevGRAyaK/fOXWjQuphXYiy3O3REciyEHt9PgXTndXPpjEBjWB5CuijFEclWIEIHRW10j7dcN0OavIW9OEi+jsmwA6ziRHHXTnicDirRkL7+iKBF0qS1738koq0RoFqHQ1HjLQmFuZwt0dHIIdsr22dMD7ccZg2cRpWoFQFIpz6aab4oIRH77g8kiCQtvNwBdeV7qti8OKWa1TN0AHTcBbRw+oQyGCkbT6nOzsVWeyngRweyisHgGtWaq8+UZYczeQnVP04WsrSCCX8MZ5TBFGZR3dGBaUEIZALMridwLt+Q0Tl3A6513kU5aYQn6suBSIeUTkaTw7rl9o5/F/+XVxE39ztnKbhutAeXHi+egmOnrwhMwjsLwWboWcfLrDghp696m6ZDQmslb+oIJbfvRZHPMPQi3f6aBF9b9dyXJxXhaFtW9bCNwOqfroriGtYIq1K4/gUW0kNw9mT0qF1IO44ZQKSMa1wRlkZL+766fmjaC9tcrpRL5TDrEBVKxDP4wkeklQL1lbcVdTvynm0h0+zAqxAeRSIZ+rnantSsbY41bM9JT4Df8RnuVItzdZdO9f28ElWgBUolwJlHVGVq1FF1yMWu611JLWZaNHlcAZWgBWIRQF2VLHIyoWyAqxAlAo8NDv//3789qv/FarMNU//t1Dpqi3R36X+Qpj8f+7+e7WZzvayAjWhwP8HDfdzoC4WBF0AAAAASUVORK5CYII=" alt="" /></p><p><img src="" alt="" /></p><h3>二、配置mybatis-generator-maven-plugin插件 </h3><div>在pom.xml 文件中,加入如下内容:</div><div><pre code_snippet_id="363636" snippet_file_name="blog_20140526_2_1345631" name="code" class="html"><build>
- <plugins>
- <plugin>
- <groupId>org.mybatis.generator</groupId>
- <artifactId>mybatis-generator-maven-plugin</artifactId>
- <version>[1.3.0,)</version>
- <configuration>
- <overwrite>true</overwrite>
- <verbose>true</verbose>
- </configuration>
- </plugin>
- </plugins>
- </build>
当然,如果你的IDE安装了m2eclipse插件,也可以使用命令添加该插件:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。