- 博客(7)
- 资源 (1)
- 收藏
- 关注
翻译 外部配置@ConfigurationProerties
Spring 允许外部化配置文件,以便不同的环境使用同一套应用程序,你可以使用properties文件、YAML文件、环境变量、命令行参数外部化配置。可以使用@Value将属性参数直接注入到Bean中或者通过@ConfigurationProerties绑定对象。@ConfigurationProperties(prefix = "datasource")@Datapublic clas...
2018-07-23 17:02:43 1145
翻译 注解支持定时任务和异步处理
Spring支持使用注解开启定时任务和异步方法执行为了支持@Scheduled 和 @Async 注解,需要在你的@Configuration类上加 @EnableScheduling 和@EnableAsync 注解@EnableScheduling@EnableAsync@SpringBootApplicationpublic class SpringBootApiAppl...
2018-07-23 14:45:47 705
翻译 net.dongliu.requests
requests 是http 请求库,有丰富的API。git 地址:https://github.com/hsiafan/requests maven 配置:<dependency> <groupId>net.dongliu</groupId> <artifactId>requests</artifactId&...
2018-07-23 12:25:18 4824
翻译 热部署-spring-boot-devtools
maven :<dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</
2018-07-20 18:44:51 325
原创 sql_mode=only_full_group_by问题解决
数据库分组查询报错:1 Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'fortress.PartnerSetting.Id' which is not functionally dependent on columns in GROUP BY clause; thi...
2018-07-06 15:48:46 2244
原创 processOn在线制图工具
推荐一款在线制作流程图的工具-processon官网地址: https://www.processon.com/
2018-07-03 17:29:46 1033
原创 windows系统通过ssh命令连接mysql数据库
1.使用ssh进行远程登陆假定你要以用户名user,登录远程主机host,只要一条简单命令就可以了。 $ ssh user@host 如:ssh pika@192.168.0.1112.连接数据库服务器mysql -u 用户名 -p 密码3.选择数据库use 数据库后续就可以在选择的数据库里执行SQL。...
2018-07-03 09:55:02 4382
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人