init

parents
# Default ignored files
/workspace.xml
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<resourceExtensions />
<wildcardResourcePatterns>
<entry name="!?*.java" />
<entry name="!?*.form" />
<entry name="!?*.class" />
<entry name="!?*.groovy" />
<entry name="!?*.scala" />
<entry name="!?*.flex" />
<entry name="!?*.kt" />
<entry name="!?*.clj" />
<entry name="!?*.aj" />
</wildcardResourcePatterns>
<annotationProcessing>
<profile default="true" name="Default" enabled="false">
<processorPath useClasspath="true" />
</profile>
<profile default="false" name="Maven default annotation processors profile" enabled="true">
<sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" />
<processorPath useClasspath="true" />
<module name="dataUtilProject" />
</profile>
</annotationProcessing>
<bytecodeTargetLevel>
<module name="dataUtilProject" target="1.8" />
</bytecodeTargetLevel>
</component>
</project>
\ No newline at end of file
<component name="CopyrightManager">
<settings default="" />
</component>
\ No newline at end of file
<component name="libraryTable">
<library name="Maven: com.alibaba:fastjson:1.2.49">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/com/alibaba/fastjson/1.2.49/fastjson-1.2.49.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/com/alibaba/fastjson/1.2.49/fastjson-1.2.49-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/com/alibaba/fastjson/1.2.49/fastjson-1.2.49-sources.jar!/" />
</SOURCES>
</library>
</component>
\ No newline at end of file
<component name="libraryTable">
<library name="Maven: com.google.protobuf:protobuf-java:2.6.0">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/com/google/protobuf/protobuf-java/2.6.0/protobuf-java-2.6.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/com/google/protobuf/protobuf-java/2.6.0/protobuf-java-2.6.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/com/google/protobuf/protobuf-java/2.6.0/protobuf-java-2.6.0-sources.jar!/" />
</SOURCES>
</library>
</component>
\ No newline at end of file
<component name="libraryTable">
<library name="Maven: mysql:mysql-connector-java:8.0.11">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/mysql/mysql-connector-java/8.0.11/mysql-connector-java-8.0.11.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/mysql/mysql-connector-java/8.0.11/mysql-connector-java-8.0.11-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/mysql/mysql-connector-java/8.0.11/mysql-connector-java-8.0.11-sources.jar!/" />
</SOURCES>
</library>
</component>
\ No newline at end of file
<component name="libraryTable">
<library name="Maven: org.mybatis:mybatis:3.4.6">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/mybatis/mybatis/3.4.6/mybatis-3.4.6.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/org/mybatis/mybatis/3.4.6/mybatis-3.4.6-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/org/mybatis/mybatis/3.4.6/mybatis-3.4.6-sources.jar!/" />
</SOURCES>
</library>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="EntryPointsManager">
<entry_points version="2.0" />
</component>
<component name="MavenProjectsManager">
<option name="originalFiles">
<list>
<option value="$PROJECT_DIR$/pom.xml" />
</list>
</option>
</component>
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
<OptionsSetting value="true" id="Add" />
<OptionsSetting value="true" id="Remove" />
<OptionsSetting value="true" id="Checkout" />
<OptionsSetting value="true" id="Update" />
<OptionsSetting value="true" id="Status" />
<OptionsSetting value="true" id="Edit" />
<ConfirmationsSetting value="0" id="Add" />
<ConfirmationsSetting value="0" id="Remove" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/dataUtilProject.iml" filepath="$PROJECT_DIR$/dataUtilProject.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8" inherit-compiler-output="false">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Maven: org.mybatis:mybatis:3.4.6" level="project" />
<orderEntry type="library" name="Maven: com.alibaba:fastjson:1.2.49" level="project" />
<orderEntry type="library" name="Maven: mysql:mysql-connector-java:8.0.11" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: com.google.protobuf:protobuf-java:2.6.0" level="project" />
</component>
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.miya</groupId>
<artifactId>dataUtilProject</artifactId>
<version>0.0.1</version>
<dependencies>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>3.4.6</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.49</version>
</dependency>
<!-- mysql -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.11</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
import com.alibaba.fastjson.JSON;
import mapper.AccountPayMapper;
import model.AccountPay;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import java.io.*;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
/**
* Created by Yang.jing on 18/8/8.
*/
public class DataRemainUtil {
private static AccountPayMapper accountPayMapper;
public static void main(String[] args) throws IOException {
InputStream inputStream = Resources.getResourceAsStream("mybatis-config.xml");
// 构件sqlSession工厂
SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);
SqlSession sqlSession = sqlSessionFactory.openSession(true);
accountPayMapper = sqlSession.getMapper(AccountPayMapper.class);
// AccountPay accountPay = accountPayMapper.getAccount("1249781701", "2018080622-00061001823319");
// System.out.println(JSON.toJSONString(accountPay));
processLogBr("/Users/yangjing/Documents/米雅文档/回插数据/1-16.log");
// processLogBr("/Users/yangjing/Documents/米雅文档/回插数据/8-8-utf.log");
}
public static void processLog(String path) throws IOException {
File logFile = new File(path);
InputStream is = new FileInputStream(logFile);
StringBuilder sb = new StringBuilder();
byte[] b = new byte[1024];
int len = 0;
int temp = 0; // 接收每一个读取进来的数据
while ((temp = is.read(b)) != -1) {
if(temp < b.length){
byte[] target = new byte[temp];
System.arraycopy(b, 0, target, 0, temp);
sb.append(new String(target));
}else {
sb.append(new String(b));
}
len+= temp;
}
System.out.println(sb.toString());
}
public static void processLogBr(String path) throws IOException {
List<String> logList = getLogList(path);
List<AccountPay> accountPayList = new LinkedList<AccountPay>();
logList.forEach(log -> {
int startIndex = log.indexOf("保存异常,");
int endIndex = log.indexOf(",原因:");
String data = log.substring(startIndex + 5, endIndex);
AccountPay accountPay = new AccountPay();
try{
accountPay = JSON.parseObject(data, AccountPay.class);
}catch (Exception e){
System.out.println("JSON parseError : " + log);
return ;
}
try{
int row = accountPayMapper.insertAccount(accountPay);
if(row < 1){
System.out.println(row + " saasid : " + accountPay.getSaasid() + ", outid: " + accountPay.getOutId());
System.out.println("error log : " + log);
}
}catch (Exception e){
System.out.println(e.getMessage());
System.out.println("error log : " + log);
System.out.println("error: saasid : " + accountPay.getSaasid() + ", outid: " + accountPay.getOutId());
}
accountPayList.add(accountPay);
});
System.out.println("日志总条数: " + accountPayList.size());
}
private static List<String> getLogList(String path) throws IOException{
File logFile = new File(path);
BufferedReader br = new BufferedReader(new FileReader(logFile));
List<String> logList = new ArrayList<String>(200);
String temp = "";
while ((temp = br.readLine()) != null) {
logList.add(temp);
}
return logList;
}
}
package mapper;
import model.AccountPay;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* Created by Yang.jing on 18/8/8.
*/
@Mapper
public interface AccountPayMapper {
AccountPay getAccount (@Param("saasid") String saasid, @Param("outId")String outId);
int insertAccount (AccountPay accountPay);
}
package model;
/**
* Created by Yang.jing on 18/8/8.
*/
public class AccountPay {
private String saasid;
private String marketid;
private String operatorId;
private String outId;
private String paymentplatform;
private String serveicetype;
private String totalFee;
private String status;
private String tradDesc;
private String date;
private String systemdate;
private String fundBillList;
private String buyerLogonId;
private String buyerUserId;
private String cashier;
private String sellerId;
private String tradeNo;
private String isSubscribe;
private String invoiceno;
private String barcode;
private String goodstag;
private String day;
private String mqstatus;
private String tradeType;
private String notifyUrl;
private String currency;
private String settlementid;
public String getSaasid() {
return saasid;
}
public void setSaasid(String saasid) {
this.saasid = saasid;
}
public String getMarketid() {
return marketid;
}
public void setMarketid(String marketid) {
this.marketid = marketid;
}
public String getOperatorId() {
return operatorId;
}
public void setOperatorId(String operatorId) {
this.operatorId = operatorId;
}
public String getOutId() {
return outId;
}
public void setOutId(String outId) {
this.outId = outId;
}
public String getPaymentplatform() {
return paymentplatform;
}
public void setPaymentplatform(String paymentplatform) {
this.paymentplatform = paymentplatform;
}
public String getServeicetype() {
return serveicetype;
}
public void setServeicetype(String serveicetype) {
this.serveicetype = serveicetype;
}
public String getTotalFee() {
return totalFee;
}
public void setTotalFee(String totalFee) {
this.totalFee = totalFee;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getTradDesc() {
return tradDesc;
}
public void setTradDesc(String tradDesc) {
this.tradDesc = tradDesc;
}
public String getDate() {
return date;
}
public void setDate(String date) {
this.date = date;
}
public String getSystemdate() {
return systemdate;
}
public void setSystemdate(String systemdate) {
this.systemdate = systemdate;
}
public String getFundBillList() {
return fundBillList;
}
public void setFundBillList(String fundBillList) {
this.fundBillList = fundBillList;
}
public String getBuyerLogonId() {
return buyerLogonId;
}
public void setBuyerLogonId(String buyerLogonId) {
this.buyerLogonId = buyerLogonId;
}
public String getBuyerUserId() {
return buyerUserId;
}
public void setBuyerUserId(String buyerUserId) {
this.buyerUserId = buyerUserId;
}
public String getCashier() {
return cashier;
}
public void setCashier(String cashier) {
this.cashier = cashier;
}
public String getSellerId() {
return sellerId;
}
public void setSellerId(String sellerId) {
this.sellerId = sellerId;
}
public String getTradeNo() {
return tradeNo;
}
public void setTradeNo(String tradeNo) {
this.tradeNo = tradeNo;
}
public String getIsSubscribe() {
return isSubscribe;
}
public void setIsSubscribe(String isSubscribe) {
this.isSubscribe = isSubscribe;
}
public String getInvoiceno() {
return invoiceno;
}
public void setInvoiceno(String invoiceno) {
this.invoiceno = invoiceno;
}
public String getBarcode() {
return barcode;
}
public void setBarcode(String barcode) {
this.barcode = barcode;
}
public String getGoodstag() {
return goodstag;
}
public void setGoodstag(String goodstag) {
this.goodstag = goodstag;
}
public String getDay() {
return day;
}
public void setDay(String day) {
this.day = day;
}
public String getMqstatus() {
return mqstatus;
}
public void setMqstatus(String mqstatus) {
this.mqstatus = mqstatus;
}
public String getTradeType() {
return tradeType;
}
public void setTradeType(String tradeType) {
this.tradeType = tradeType;
}
public String getNotifyUrl() {
return notifyUrl;
}
public void setNotifyUrl(String notifyUrl) {
this.notifyUrl = notifyUrl;
}
public String getCurrency() {
return currency;
}
public void setCurrency(String currency) {
this.currency = currency;
}
public String getSettlementid() {
return settlementid;
}
public void setSettlementid(String settlementid) {
this.settlementid = settlementid;
}
}
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="mapper.AccountPayMapper">
<resultMap type="accountPay" id="accountPayResult">
<result property="saasid" column="saasid"/>
<result property="marketid" column="marketid"/>
<result property="operatorId" column="operator_id"/>
<result property="outId" column="out_id"/>
<result property="paymentplatform" column="paymentplatform"/>
<result property="serveicetype" column="serveicetype"/>
<result property="totalFee" column="total_fee"/>
<result property="refundFee" column="refund_fee"/>
<result property="restamount" column="restamount"/>
<result property="rate" column="rate"/>
<result property="netamount" column="netamount"/>
<result property="status" column="status"/>
<result property="tradDesc" column="trad_desc"/>
<result property="date" column="date"/>
<result property="systemdate" column="systemdate"/>
<result property="sellerId" column="seller_id"/>
<result property="buyerUserId" column="buyer_user_id"/>
<result property="fundBillList" column="fund_bill_list"/>
<result property="day" column="day"/>
<result property="tradeType" column="trade_type"/>
<result property="notifyUrl" column="notify_url"/>
<result property="currency" column="currency"/>
<result property="settlementid" column="settlementid"/>
<result property="mqstatus" column="mqstatus"/>
</resultMap>
<insert id="insertAccount" parameterType="accountPay">
INSERT INTO accountpay (
saasid,
marketid,
operator_id,
out_id,
paymentplatform,
serveicetype,
total_fee,
status,
trad_desc,
date,
systemdate,
fund_bill_list,
buyer_logon_id,
buyer_user_id,
cashier,
seller_id,
trade_no,
is_subscribe,
invoiceno,
barcode,
goodstag
<if test="day != null and day !='' ">,day</if>
<if test="tradeType != null and tradeType !='' ">,trade_type</if>
<if test="notifyUrl != null and notifyUrl !='' ">,notify_url</if>
<if test="currency != null and currency !='' ">,currency</if>
<if test="settlementid != null and settlementid !='' ">,settlementid</if>
<if test="mqstatus != null and mqstatus !='' ">,mqstatus</if>
) VALUES (
#{saasid},
#{marketid},
#{operatorId},
#{outId},
#{paymentplatform},
#{serveicetype},
#{totalFee},
#{status},
#{tradDesc},
sysdate(),
sysdate(),
#{fundBillList},
#{buyerLogonId},
#{buyerUserId},
#{cashier},
#{sellerId},
#{tradeNo},
#{isSubscribe},
#{invoiceno},
#{barcode},
#{goodstag}
<if test="day != null and day !='' ">,#{day}</if>
<if test="tradeType != null and tradeType !='' ">,#{tradeType}</if>
<if test="notifyUrl != null and notifyUrl !='' ">,#{notifyUrl}</if>
<if test="currency != null and currency !='' ">,#{currency}</if>
<if test="settlementid != null and settlementid !='' ">,#{settlementid}</if>
<if test="mqstatus != null and mqstatus !='' ">,#{mqstatus}</if>
)
</insert>
<select id="getAccount" resultMap="accountPayResult">
SELECT * FROM accountpay WHERE saasid=#{saasid} AND out_id = #{outId}
</select>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE configuration
PUBLIC "-//ibatis.apache.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<settings>
<setting name="cacheEnabled" value="false"/>
<!--lazyLoadingEnabled: lazy loading开关,默认为true。
全局性设置懒加载。如果设为‘false’,则所有相关联的都会被初始化加载-->
<setting name="lazyLoadingEnabled" value="true"/>
<!--aggressiveLazyLoading 默认true:当访问任何一个属性都会加载所有的其他lazy load属性,
即使你根本没有调用哪个lazy load属性,说白了就是aggressiveLazyLoading=true,则lazy load等于没用,
所以要使用lazy load还是将其设为false -->
<setting name="aggressiveLazyLoading" value="false"/>
</settings>
<typeAliases>
<typeAlias alias="accountPay" type="model.AccountPay" />
</typeAliases>
<environments default="development">
<environment id="development">
<transactionManager type="JDBC"/>
<dataSource type="POOLED">
<property name="username" value="miyadb"/>
<property name="password" value="hysU6dTYUHb1Oqq0wY"/>
<property name="url" value="jdbc:mysql://rm-bp1gbeyf461zbrf23o.mysql.rds.aliyuncs.com:3637/zhpt03db?useUnicode=true"/>
<property name="driver" value="com.mysql.cj.jdbc.Driver"/>
</dataSource>
</environment>
</environments>
<mappers>
<mapper resource="mapper/AccountPayMapper.xml"/>
</mappers>
</configuration>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="mapper.AccountPayMapper">
<resultMap type="accountPay" id="accountPayResult">
<result property="saasid" column="saasid"/>
<result property="marketid" column="marketid"/>
<result property="operatorId" column="operator_id"/>
<result property="outId" column="out_id"/>
<result property="paymentplatform" column="paymentplatform"/>
<result property="serveicetype" column="serveicetype"/>
<result property="totalFee" column="total_fee"/>
<result property="refundFee" column="refund_fee"/>
<result property="restamount" column="restamount"/>
<result property="rate" column="rate"/>
<result property="netamount" column="netamount"/>
<result property="status" column="status"/>
<result property="tradDesc" column="trad_desc"/>
<result property="date" column="date"/>
<result property="systemdate" column="systemdate"/>
<result property="sellerId" column="seller_id"/>
<result property="buyerUserId" column="buyer_user_id"/>
<result property="fundBillList" column="fund_bill_list"/>
<result property="day" column="day"/>
<result property="tradeType" column="trade_type"/>
<result property="notifyUrl" column="notify_url"/>
<result property="currency" column="currency"/>
<result property="settlementid" column="settlementid"/>
<result property="mqstatus" column="mqstatus"/>
</resultMap>
<insert id="insertAccount" parameterType="accountPay">
INSERT INTO accountpay (
saasid,
marketid,
operator_id,
out_id,
paymentplatform,
serveicetype,
total_fee,
status,
trad_desc,
date,
systemdate,
fund_bill_list,
buyer_logon_id,
buyer_user_id,
cashier,
seller_id,
trade_no,
is_subscribe,
invoiceno,
barcode,
goodstag
<if test="day != null and day !='' ">,day</if>
<if test="tradeType != null and tradeType !='' ">,trade_type</if>
<if test="notifyUrl != null and notifyUrl !='' ">,notify_url</if>
<if test="currency != null and currency !='' ">,currency</if>
<if test="settlementid != null and settlementid !='' ">,settlementid</if>
<if test="mqstatus != null and mqstatus !='' ">,mqstatus</if>
) VALUES (
#{saasid},
#{marketid},
#{operatorId},
#{outId},
#{paymentplatform},
#{serveicetype},
#{totalFee},
#{status},
#{tradDesc},
sysdate(),
sysdate(),
#{fundBillList},
#{buyerLogonId},
#{buyerUserId},
#{cashier},
#{sellerId},
#{tradeNo},
#{isSubscribe},
#{invoiceno},
#{barcode},
#{goodstag}
<if test="day != null and day !='' ">,#{day}</if>
<if test="tradeType != null and tradeType !='' ">,#{tradeType}</if>
<if test="notifyUrl != null and notifyUrl !='' ">,#{notifyUrl}</if>
<if test="currency != null and currency !='' ">,#{currency}</if>
<if test="settlementid != null and settlementid !='' ">,#{settlementid}</if>
<if test="mqstatus != null and mqstatus !='' ">,#{mqstatus}</if>
)
</insert>
<select id="getAccount" resultMap="accountPayResult">
SELECT * FROM accountpay WHERE saasid=#{saasid} AND out_id = #{outId}
</select>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE configuration
PUBLIC "-//ibatis.apache.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<settings>
<setting name="cacheEnabled" value="false"/>
<!--lazyLoadingEnabled: lazy loading开关,默认为true。
全局性设置懒加载。如果设为‘false’,则所有相关联的都会被初始化加载-->
<setting name="lazyLoadingEnabled" value="true"/>
<!--aggressiveLazyLoading 默认true:当访问任何一个属性都会加载所有的其他lazy load属性,
即使你根本没有调用哪个lazy load属性,说白了就是aggressiveLazyLoading=true,则lazy load等于没用,
所以要使用lazy load还是将其设为false -->
<setting name="aggressiveLazyLoading" value="false"/>
</settings>
<typeAliases>
<typeAlias alias="accountPay" type="model.AccountPay" />
</typeAliases>
<environments default="development">
<environment id="development">
<transactionManager type="JDBC"/>
<dataSource type="POOLED">
<property name="username" value="miyadb"/>
<property name="password" value="hysU6dTYUHb1Oqq0wY"/>
<property name="url" value="jdbc:mysql://rm-bp1gbeyf461zbrf23o.mysql.rds.aliyuncs.com:3637/zhpt03db?useUnicode=true"/>
<property name="driver" value="com.mysql.cj.jdbc.Driver"/>
</dataSource>
</environment>
</environments>
<mappers>
<mapper resource="mapper/AccountPayMapper.xml"/>
</mappers>
</configuration>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment