上一页 1 2 3 4 5 6 7 ··· 22 下一页
摘要: spring boot 集成 swagger 3.0 指南 阅读全文
posted @ 2021-12-28 15:44 袁骞骞 阅读(75) 评论(0) 推荐(0) 编辑
摘要: springboot配置health接口 spring-boot-starter-actuator 健康监控配置及使用 这样是可以看到一些结果的 如果在配置文件中用了下面这个,也是可以生效的 # 不进行dbh检查。运维设置默认检查 management.health.db.enabled=false 阅读全文
posted @ 2021-12-24 16:55 袁骞骞 阅读(2530) 评论(0) 推荐(0) 编辑
摘要: SpringBoot读取外部配置文件的方法 Spring高级之注解@PropertySource详解(超详细) 1、@PropertySource(value = {"classpath:config/user.properties"}) 2、可以使用@ConfigurationProperties 阅读全文
posted @ 2021-12-24 15:15 袁骞骞 阅读(744) 评论(0) 推荐(0) 编辑
摘要: 注解@ConfigurationProperties使用方法 1、配置文件内容 spring.datasource.url=jdbc:mysql://localhost:3306/satellite_resource?characterEncoding=utf8&serverTimezone=Asi 阅读全文
posted @ 2021-12-24 10:21 袁骞骞 阅读(374) 评论(0) 推荐(0) 编辑
摘要: SpringBoot注解最全详解(整合超详细版本) 阅读全文
posted @ 2021-12-23 17:31 袁骞骞 阅读(47) 评论(0) 推荐(0) 编辑
摘要: https://www.bejson.com/json2javapojo/new/ 至于效果怎么样,自己试一下就知道了 阅读全文
posted @ 2021-12-23 16:37 袁骞骞 阅读(311) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/Ber_Bai/article/details/117001443 如果不排除,就需要使用@RunWith注解? 25-springboot整合单元测试指定spring的测试引擎 阅读全文
posted @ 2021-12-20 10:01 袁骞骞 阅读(507) 评论(0) 推荐(0) 编辑
摘要: 教你如何6秒钟往MySQL插入100万条数据!然后删库跑路! 由于我用的mysql 8版本,所以增加了Timezone,然后就可以了 前提是要自己建好库和表。 数据库test, 表user, 三个字段: u_id、u_name、u_pwd,然后主键自增 conn = DriverManager.ge 阅读全文
posted @ 2021-12-17 17:01 袁骞骞 阅读(428) 评论(0) 推荐(0) 编辑
摘要: 本次测试使用的是免费版的 emqx-windows-4.3.10 版本 1、修改redis插件 emqx_auth_redis.conf 设置redis地址和密码等(无密码就空着), auth.redis.password_hash我没改 默认使用的 plain 2、修改emqx.conf 3、启动 阅读全文
posted @ 2021-12-16 15:57 袁骞骞 阅读(781) 评论(0) 推荐(0) 编辑
摘要: SpringBoot中如何优雅的使用多线程 当异步方法有返回值时,如何获取异步方法执行的返回结果呢?这时需要异步调用的方法带有返回值CompletableFuture 阅读全文
posted @ 2021-12-13 10:58 袁骞骞 阅读(285) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 22 下一页