上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 20 下一页
摘要: environment是在printBanner之前就初始化好了, 更在context创建之前, 已经加载application-xxxx.properties, System.properties, System.environment ... 也可以自己监听应用启动 SpringApplicat 阅读全文
posted @ 2018-11-12 20:08 funny_coding 阅读(1975) 评论(0) 推荐(0) 编辑
摘要: ## spring boot http2 项目已启动的情况下,启动单元测试报端口has binded 可以使用server.port=-1 禁用端口绑定来启动单元测试 https://docs.spring.io/spring-boot/docs/current/reference/html/how 阅读全文
posted @ 2018-11-09 16:59 funny_coding 阅读(653) 评论(0) 推荐(0) 编辑
摘要: 直接postman, curl, 浏览器访问后端接口, response header是不会自动加上Access-Control-Allow-Origin的。 需要在ajax中调用,客户端request中会加上Origin请求头 (首先要保证发出的是跨站请求!!!), 服务器端才会加上respons 阅读全文
posted @ 2018-11-06 15:35 funny_coding 阅读(12445) 评论(0) 推荐(1) 编辑
摘要: 现象: PVService PVServiceImpl >名称就是PVServiceImpl, 首字母没有小写 PageViewServiceImpl ==>名称是pageViewServiceImpl, 首字母小写 原因:org.springframework.context.annotation 阅读全文
posted @ 2018-11-02 19:07 funny_coding 阅读(1299) 评论(0) 推荐(0) 编辑
摘要: 为什么要调用方法,而不是直接autowire? 官方文档 https://docs.spring.io/spring-boot/docs/current/reference/html/howto-data-access.html#howto-two-datasources 参考实现 https:// 阅读全文
posted @ 2018-10-31 21:17 funny_coding 阅读(1496) 评论(0) 推荐(0) 编辑
摘要: 示例数据库不和bin安装文件在一块, 安装数据库没有这个选项 https://dev.mysql.com/doc/index-other.html 阅读全文
posted @ 2018-10-28 19:00 funny_coding 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 默认隔离级别:可重复读 1 原始数据 2 | id | name | addr | 3 | 6 | nick | NULL | 4 5 事务1 事务2 6 7 start transaction start transaction 8 9 select * from t_user where id= 阅读全文
posted @ 2018-10-25 21:42 funny_coding 阅读(253) 评论(0) 推荐(0) 编辑
摘要: self define indicator https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-endpoints.html#_writing_custom_healthindicators 阅读全文
posted @ 2018-10-24 17:44 funny_coding 阅读(130) 评论(0) 推荐(0) 编辑
摘要: Spriing boot stater中根据配置文件中的条件 生成相应的bean, 以适应不同场景 @ConditionalOnExpression中使用SpEl, 支持各种条件表达式 String的各种方法都能用,不限于等于、正则、以..开始、以..结束 自已如何用? MethodBasedEva 阅读全文
posted @ 2018-10-23 12:46 funny_coding 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 文件加载顺序 interactive和non-interactive加载的文件个数有很大区别哦!!! for if case ... 语法 往前移动一个单词 alt f,或者ctrl+方向键 https://github.com/hokein/Wiki/wiki/Bash-Shell%E5%B8%B 阅读全文
posted @ 2018-10-20 22:52 funny_coding 阅读(250) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 20 下一页
build beautiful things, share happiness