Commit 1ba13285 by java-李谡

修改jdbc连接,代码review

parent 18c2ff27
...@@ -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://123.56.146.7:3306/jd_foc?useUnicode=true&characterEncoding=utf-8 jdbc.url=jdbc:mysql://106.75.97.50/jd_foc?useUnicode=true&characterEncoding=utf-8
jdbc.username=focuser jdbc.username=focuser
jdbc.password=FOC@2016 jdbc.password=FOC@2016
......
...@@ -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", ",");
// }
// });
// }
} }
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