mybatis Generator自动创建代码
由于MyBatis属于一种半自动的ORM框架,所以主要的办公就是配置Mapping映射文件,但是由于手写映射文件很容易出错,所以可利用MyBatis生成器自动生成实体类、DAO接口和Mapping映射文件。这样可以省去很多的功夫,将生成的代码copy到项目工程中即可(Since MyBatis belongs to a semi-automatic ORM framework, the main office work is to configure mapping files. However, since handwritten mapping files are prone to errors, the MyBatis generator can be used to automatically generate entity classes, DAO interfaces and mapping mapping files. This saves a lot of effort. Copy the generated code to the project project)
页:
[1]