Commit e7e39cee by gechengyang

init

parent 8e06b5c5
...@@ -14,13 +14,14 @@ public class RemitServiceImp implements RemitService { ...@@ -14,13 +14,14 @@ public class RemitServiceImp implements RemitService {
private CpdMapper cpdMapper; private CpdMapper cpdMapper;
@Autowired @Autowired
private TrnMapper trnMapper; private TrnMapper trnMapper;
private static int i = 10;
@Override @Override
public void test() { public void test() {
Cpd cpd = new Cpd(); Cpd cpd = new Cpd();
cpd.setINR("1"); cpd.setINR(String.valueOf(i));
i++;
cpdMapper.insert(cpd); cpdMapper.insert(cpd);
System.out.println("insert cpd success !!!"); System.out.println("insert cpd success !!!");
} }
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" > <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" >
<property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/> <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
<property name="url" value="jdbc:oracle:thin:@172.17.2.4:1521:orcl"/> <property name="url" value="jdbc:oracle:thin:@172.17.2.4:1521:orcl"/>
<property name="username" value="gcy2"/> <property name="username" value="xxremit"/>
<property name="password" value="gcy2"/> <property name="password" value="xxremit"/>
<property name="maxActive" value="60"/> <property name="maxActive" value="60"/>
<property name="maxIdle" value="60"/> <property name="maxIdle" value="60"/>
<property name="minIdle" value="5"/> <property name="minIdle" value="5"/>
...@@ -30,6 +30,8 @@ ...@@ -30,6 +30,8 @@
<property name="mapperLocations" value="classpath*:com/brilliance/remit/db/mapper/**/*.xml"/> <property name="mapperLocations" value="classpath*:com/brilliance/remit/db/mapper/**/*.xml"/>
</bean> </bean>
<!-- 配置mapper对应的dao和mybatis工厂  --> <!-- 配置mapper对应的dao和mybatis工厂  -->
<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer"> <bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
<property name="basePackage" value="com.brilliance.remit.db.dao"/> <property name="basePackage" value="com.brilliance.remit.db.dao"/>
......
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