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
6 years ago
by
gechengyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
8e06b5c5
master
No related merge requests found
Hide 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 {
private
CpdMapper
cpdMapper
;
@Autowired
private
TrnMapper
trnMapper
;
private
static
int
i
=
10
;
@Override
public
void
test
()
{
Cpd
cpd
=
new
Cpd
();
cpd
.
setINR
(
"1"
);
cpd
.
setINR
(
String
.
valueOf
(
i
)
);
i
++;
cpdMapper
.
insert
(
cpd
);
System
.
out
.
println
(
"insert cpd success !!!"
);
}
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/spring-applicationContext.xml
View file @
e7e39cee
...
...
@@ -15,8 +15,8 @@
<bean
id=
"dataSource"
class=
"org.apache.commons.dbcp.BasicDataSource"
>
<property
name=
"driverClassName"
value=
"oracle.jdbc.driver.OracleDriver"
/>
<property
name=
"url"
value=
"jdbc:oracle:thin:@172.17.2.4:1521:orcl"
/>
<property
name=
"username"
value=
"
gcy2
"
/>
<property
name=
"password"
value=
"
gcy2
"
/>
<property
name=
"username"
value=
"
xxremit
"
/>
<property
name=
"password"
value=
"
xxremit
"
/>
<property
name=
"maxActive"
value=
"60"
/>
<property
name=
"maxIdle"
value=
"60"
/>
<property
name=
"minIdle"
value=
"5"
/>
...
...
@@ -29,6 +29,8 @@
<!-- mapperLocations配置**Mapper.xml文件位置 -->
<property
name=
"mapperLocations"
value=
"classpath*:com/brilliance/remit/db/mapper/**/*.xml"
/>
</bean>
<!-- 配置mapper对应的dao和mybatis工厂 -->
<bean
class=
"org.mybatis.spring.mapper.MapperScannerConfigurer"
>
...
...
This diff is collapsed.
Click to expand it.
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