課程
/后端開發(fā)
/Java
/SpringBoot構建電商基礎秒殺項目
請問一下 現(xiàn)在在mybatis_generator.xml下載的xml文件是不是已經更新過了,跟老師的不一樣了?
2020-12-25
源自:SpringBoot構建電商基礎秒殺項目 2-4
正在回答
<?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"> ????????<!--數(shù)據(jù)庫鏈接地址賬號密碼--> ????????<jdbcConnection?driverClass="com.mysql.jdbc.Driver" ?????????connectionURL="jdbc:mysql://127.0.0.1:3306/miaosha"?userId="root"?password="root"> ????????</jdbcConnection> ????????<!--?生成DataObject類存放位置--> ????????<javaModelGenerator?targetPackage="com.miaoshaproject.dataobject"?targetProject="src/main/java"> ????????????<property?name="enableSubPackages"?value="true"?/> ????????????<property?name="trimStrings"?value="true"?/> ????????</javaModelGenerator> ????????<!--生成映射文件存放位置--> ????????<sqlMapGenerator?targetPackage="mapping"?targetProject="src/main/resources"> ????????????<property?name="enableSubPackages"?value="true"/> ????????</sqlMapGenerator> ????????<!--生成Dao類存放位置--> ????????<javaClientGenerator?type="XMLMAPPER"?targetPackage="com.miaoshaproject.dao" ?????????????????????????????targetProject="src/main/java"> ????????????<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>
慕移動5278880 提問者
舉報
應用SpringBoot快速搭建擁有用戶、商品、交易及秒殺活動的電商秒殺應用。
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學習伙伴
掃描二維碼關注慕課網(wǎng)微信公眾號
2020-12-25