Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
foc_manage
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
首航-临时账号
foc_manage
Commits
1ba13285
Commit
1ba13285
authored
Feb 27, 2018
by
java-李谡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改jdbc连接,代码review
parent
18c2ff27
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
175 deletions
+4
-175
jdbc.properties
resources/jdbc.properties
+1
-1
SystemService.java
src/com/ejweb/modules/sys/service/SystemService.java
+3
-153
UserController.java
src/com/ejweb/modules/sys/web/UserController.java
+0
-21
No files found.
resources/jdbc.properties
View file @
1ba13285
...
@@ -3,7 +3,7 @@ db.table.prefix=foc_
...
@@ -3,7 +3,7 @@ db.table.prefix=foc_
jdbc.type
=
mysql
jdbc.type
=
mysql
jdbc.driver.class
=
com.mysql.jdbc.Driver
jdbc.driver.class
=
com.mysql.jdbc.Driver
jdbc.url
=
jdbc:mysql://1
23.56.146.7:3306
/jd_foc?useUnicode=true&characterEncoding=utf-8
jdbc.url
=
jdbc:mysql://1
06.75.97.50
/jd_foc?useUnicode=true&characterEncoding=utf-8
jdbc.username
=
focuser
jdbc.username
=
focuser
jdbc.password
=
FOC@2016
jdbc.password
=
FOC@2016
...
...
src/com/ejweb/modules/sys/service/SystemService.java
View file @
1ba13285
This diff is collapsed.
Click to expand it.
src/com/ejweb/modules/sys/web/UserController.java
View file @
1ba13285
...
@@ -402,25 +402,4 @@ public class UserController extends BaseController {
...
@@ -402,25 +402,4 @@ public class UserController extends BaseController {
return
mapList
;
return
mapList
;
}
}
// @InitBinder
// public void initBinder(WebDataBinder b) {
// b.registerCustomEditor(List.class, "roleList", new PropertyEditorSupport(){
// @Autowired
// private SystemService systemService;
// @Override
// public void setAsText(String text) throws IllegalArgumentException {
// String[] ids = StringUtils.split(text, ",");
// List<Role> roles = new ArrayList<Role>();
// for (String id : ids) {
// Role role = systemService.getRole(Long.valueOf(id));
// roles.add(role);
// }
// setValue(roles);
// }
// @Override
// public String getAsText() {
// return Collections3.extractToString((List) getValue(), "id", ",");
// }
// });
// }
}
}
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