Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
remit
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gechengyang
remit
Commits
e7e39cee
Commit
e7e39cee
authored
Dec 14, 2018
by
gechengyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
8e06b5c5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
RemitServiceImp.java
...ava/com/brilliance/remit/service/imp/RemitServiceImp.java
+3
-2
spring-applicationContext.xml
src/main/resources/spring-applicationContext.xml
+4
-2
No files found.
src/main/java/com/brilliance/remit/service/imp/RemitServiceImp.java
View file @
e7e39cee
...
@@ -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 !!!"
);
}
}
...
...
src/main/resources/spring-applicationContext.xml
View file @
e7e39cee
...
@@ -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"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment