苍青浪
2019-09-18 22:36
谁有项目的源码,能发一下吗
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd"> <generatorConfiguration> <context id="DB2Tables" targetRuntime="MyBatis3"> <!--数据库链接地址账号密码--> <jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://localhost:3306/miaosha" userId="root" password="root"> </jdbcConnection> <!--生成DataObject类的存放位置--> <javaModelGenerator targetPackage="com.miaoshaproject.dataobject" targetProject="src/main/java"> <property name="enableSubPackages" value="false" /> <property name="trimStrings" value="true" /> </javaModelGenerator> <!--生成映射文件存放位置--> <sqlMapGenerator targetPackage="mapping" targetProject="src/main/resources"> <property name="enableSubPackages" value="true" /> </sqlMapGenerator> <!--生成Dao类存放位置--> <javaClientGenerator targetPackage="com.miaoshaproject.dao" targetProject="src/main/java" type="XMLMAPPER"> <property name="enableSubPackages" value="true" /> </javaClientGenerator> <!--生成对应表及类名--> <table tableName="user_info" domainObjectName="UserDO" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table> <table tableName="user_password" domainObjectName="UserPasswordDO" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false" ></table> </context> </generatorConfiguration>
<?xml version="1.0"encoding="UTF-8"?> <!DOCTYPE generatorConfiguration PUBLIC"-//mybat is.org//DTD MyBatis Generator Configuration 1.0//EN" "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd"> <generatorConfiguration> <context id="DB2Tables" targetRuntime="MyBatis3"> <!--数据库链接地址账号密码--> <jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="***" userId="root" password=""> </jdbcConnection> <!--生成Model类存放位置--> <javalodetGenerator targetPackage="***" targetProject="src/main/java"> <property name="enableSubPackages" value="true"/> <property name="trimStrings" value="true"/> </javalodetGenerator> </context> <!--生成映射文件存放位量--> <sqlapcenerator targetPackage="mapping" targetProject="src/main/resources"> <property name="enableSubPackages" value="true"/> </sqlapcenerator> <!--生成Dao类存故位理--> <!--客户缩代码,生成易于使用的针对Mode1对象和XL配置文件的代码 type="ANNOTATEDMAPPER",生成Java Model 和基于注解的Mapper对象 type="MIXEDMAPPER",生成基于注解的Java Model和相应的Mapper对象 type="XMLMAPPER",生成SQLMapXML文件和独立的Mapper接口 --> <javaCLtentGenerator type="XMLMAPPER" targetPackage="***" targetProject="src/main/java"> <property name="enableSubPackages" value="true"/> </javaCLtentGenerator> <!--生成对应表及类名--> </generatorConfiguration>
SpringBoot构建电商基础秒杀项目
49064 学习 · 954 问题
相似问题