摘要: 为了使查询数据库时,可以使用命名参数,则要用NamedParameterJdbcTemplate 1.Java文件配置 2.在Dao层中使用 阅读全文
posted @ 2016-03-31 23:27 shamgod 阅读(245) 评论(0) 推荐(0)
摘要: 一、概述 1.Spring offers several options for configuring data-source beans in your Spring application, including these:  Data sources that are defined by 阅读全文
posted @ 2016-03-31 18:45 shamgod 阅读(363) 评论(0) 推荐(0)
摘要: 0.结构 一、JDBC层 1. 2. 3. 4. 二、Domain层 1. 2. 三、配置文件及数据库文件 1.JdbcConfig.java 2.或用xml配置(JdbcRepositoryTests-context.xml) 3.schema.sql 4.test-data.sql 四、测试文件 阅读全文
posted @ 2016-03-31 18:21 shamgod 阅读(354) 评论(0) 推荐(0)
摘要: 1.spring扩展的jdbc异常 2.Template的运行机制 Spring separates the fixed and variable parts of the data-access process into two distinct classes: templates and ca 阅读全文
posted @ 2016-03-31 18:07 shamgod 阅读(206) 评论(0) 推荐(0)
摘要: 1.把包含敏感信息的请求转为https请求,则较为安全,但如何只把有需要安全的请求转为https,而不是不加分辩就把所有请求都转为https呢?可以用requiresChannel() Any time a request comes in for /spitter/form, Spring Sec 阅读全文
posted @ 2016-03-31 15:13 shamgod 阅读(798) 评论(0) 推荐(0)
haha