- 博客(6)
- 收藏
- 关注
原创 spring通过@Configuration @Bean注入Bean
1.spring mvc项目可以直接在controller里面注入request,response@Autowiredprivate HttpServletRequest request;@Autowiredprivate HttpServletResponse response;然后就突发奇想是否可以@Ahtowired注入其他bean,最后发现使用@Configur
2017-09-13 17:16:18
2632
转载 mybatis绑定错误另外一种原因
先阅读 http://blog.youkuaiyun.com/softwarehe/article/details/8889206mybatis: basepackage: com.tk.**.dao xmlLocation: classpath*:com/tk/**/*.xmldao层以jar包的形式依赖到项目中,classpath需要添加*号
2017-09-06 20:32:05
584
原创 spring cloud整合swagger,通过zuul路由
spring cloud整合swagger,通过zuul路由写在前面:开发中项目使用swagger做API管理,所有的请求通过zuul路由。此篇博客以博主实际开发中的架构为参考。pom引入swagger jar包 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</a
2017-09-04 10:17:54
8460
1
原创 freemarker 数字过长去掉逗号
#模板引擎freemarker: #关闭缓存 cache: false #获得request request-context-attribute: ctx #模板加载的位置 template-loader-path: classpath:/templates #前缀 #suffix: .htm #后缀 #p
2017-08-28 11:45:18
1849
1
原创 datetable格式化时间
时间戳类型转date类型 Date.prototype.format = function (format) { var o = { "M+": this.getMonth() + 1, // month "d+": this.getDate(), // day "h+": this.
2017-08-28 11:41:07
2849
原创 对web项目数据库user pwd实行加密
对web项目数据库user pwd实行加密思路:1.写properties配置文件,导入el变量 2.加密properties文件user,pwd 3.在spring加载器解密jdbc.properties配置文件driverClassName=oracle.jdbc.driver.OracleDriverurl=MyuOSAj6tbjyR9+1
2017-01-06 10:07:33
3700
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人