GithubHelp home page GithubHelp logo

mybatisimprove's Introduction

此jar包可以给mybatis DO对象生成数据库对应的注释。 使用方式

1.mybatis-generator 插件添加依赖

		<plugin>
			<groupId>org.mybatis.generator</groupId>
			<artifactId>mybatis-generator-maven-plugin</artifactId>
			<version>1.3.5</version>
			<configuration>
				<!--允许移动生成的文件 -->
				<verbose>true</verbose>
				<!--允许覆盖生成的文件 -->
				<overwrite>true</overwrite>
			</configuration>
			<!-- 插件所依赖的包 -->
			<dependencies>
				<dependency>
					<groupId>org.mbatis.improve</groupId>
					<artifactId>commentGenerator</artifactId>
					<version>1.0-SNAPSHOT</version>
				</dependency>
			</dependencies>
		</plugin>

2.generatorConfig.xml 设置生成注释的自定义类

<commentGenerator type="MyCommentGenerator">
 <!-- 是否去除自动生成的注释 true:是 : false:否 -->
 <property name="suppressAllComments" value="true" />
</commentGenerator>

mybatisimprove's People

Contributors

bobogu23 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.