随笔分类 -  Spring

1.Class.forName()报错问题
摘要:Class.forName()报错连接数据库的时候要用到try catchString url = "jdbc:mysql://localhost:3306/survey?user=root&password=&useUnicode=true&characterEncoding=utf-8&autoReconnect=true&failOverReadOnly=false"; protecte... 阅读全文

posted @ 2015-09-22 16:05 程序员的戎马一生 阅读(1163) 评论(0) 推荐(0)

Spring 代码知识查缺补漏
摘要:1.查询的时候,如果@Id出现重复,那么结果会被覆盖2.前台传递给后台的三种联系方式@RequestBody@RequestParam@PathVariable3.查询记得传参数!!!@NamedNativeQuery(name="UserJoinProductQuery.getStatistReg... 阅读全文

posted @ 2015-09-22 16:04 程序员的戎马一生 阅读(136) 评论(0) 推荐(0)