会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小匠人
博客园
首页
新随笔
联系
订阅
管理
2022年5月24日
postgresql 设置自增id起始值
摘要: select setval('rbac_power_bi_request_id_seq',(select max(id) from rbac_power_bi_request));
阅读全文
posted @ 2022-05-24 15:17 小匠人
阅读(233)
评论(0)
推荐(0)
2022年2月18日
mybatis map 遍历
摘要: mybatis 中对 map 进行 遍历 <select id="getTableDataByFilter" resultType="Map"> select * from ${tableName} where 1 = 1 <if test="map != null"> <foreach colle
阅读全文
posted @ 2022-02-18 11:26 小匠人
阅读(635)
评论(0)
推荐(0)
2021年10月29日
gradle 排除依赖包
摘要: 可以用如下方式排除依赖包:implementation group: 'org.springframework.boot', name: 'spring-boot-starter-data-redis', version: '2.5.5',{ exclude group: 'io.lettuce'
阅读全文
posted @ 2021-10-29 11:46 小匠人
阅读(1241)
评论(0)
推荐(0)
2021年9月27日
postgresql 查看数据库连接
摘要: select * from pg_stat_activity where application_name = 'PostgreSQL JDBC Driver'; 可以查看数据库连接数 原文连接:https://blog.csdn.net/kiwi_kid/article/details/50854
阅读全文
posted @ 2021-09-27 17:39 小匠人
阅读(531)
评论(0)
推荐(0)
springboot 发布目录
摘要: 查看springboot发布根目录 ApplicationHome h = new ApplicationHome(getClass()); h.toString()即项目部署的根目录
阅读全文
posted @ 2021-09-27 17:37 小匠人
阅读(159)
评论(0)
推荐(0)
2021年8月27日
指定spring中bean的加载顺序
摘要: 一、获取所有的 BeanPostProcessor;后置处理器都默认可以通过PriorityOrdered、Ordered接口来执行优先级 BeanPostProcessor 可以提高bean加载的优先级
阅读全文
posted @ 2021-08-27 11:35 小匠人
阅读(597)
评论(0)
推荐(0)
2021年7月15日
http请求中文乱码问题
摘要: HttpHeaders headers = new HttpHeaders();MediaType type = MediaType.parseMediaType("application/json; charset=UTF-8");headers.setContentType(type);head
阅读全文
posted @ 2021-07-15 10:35 小匠人
阅读(456)
评论(0)
推荐(0)
2021年4月30日
springboot mybatis 配置多数据源
摘要: 1、application.yml 增加多数据源配置: spring: datasource: type: com.alibaba.druid.pool.DruidDataSource druid: driver-class-name: com.mysql.cj.jdbc.Driver url: j
阅读全文
posted @ 2021-04-30 11:21 小匠人
阅读(631)
评论(0)
推荐(0)
2021年4月27日
jenkins中通过execute shell启动的进程会被杀死的问题(其它进程)
摘要: 问题: 通过kenkins 部署jar包启动的进程会被自己杀掉 解决方法: 1.重设环境变量build_id 在execute shell输入框中加入BUILD_ID=DONTKILLME,即可防止jenkins杀死启动的java进程 原文链接:https://blog.csdn.net/sdmxd
阅读全文
posted @ 2021-04-27 17:55 小匠人
阅读(315)
评论(0)
推荐(0)
lunix 上部署Jenkins
摘要: Jenkins是用java编写的开源持续集成工具,目前被国内外各公司广泛使用。本章教大家如何在linux服务器上安装Jenkins。 1、安装jdk Jenkins的运行需要依赖jdk,所以在安装Jenkins之前我们得先把jdk装上。 2. yum安装Jenkins 这里推荐使用yum方式安装Je
阅读全文
posted @ 2021-04-27 11:32 小匠人
阅读(88)
评论(0)
推荐(0)
下一页
公告