随笔分类 -  java

摘要:具体默认值查看io.undertow.Builder 需要个性化配置参考下方配置 server: undertow: # 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作 # 如果每次需要 ByteBuffer 的时候都去申请,对于堆内存的 ByteBuffer 需要走 JV 阅读全文
posted @ 2023-08-29 14:19 Binz 阅读(633) 评论(0) 推荐(0) 编辑
摘要:直接上代码,缺包的自行替换为自己项目中存在的 import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.HashSet; import java.util.L 阅读全文
posted @ 2023-08-29 10:12 Binz 阅读(283) 评论(0) 推荐(0) 编辑
摘要:xml版本查看:https://www.cnblogs.com/binz/p/6564490.html springboot3.x以前的版本查看 https://www.cnblogs.com/binz/p/17421063.html springboot3.x查看 https://www.cnbl 阅读全文
posted @ 2023-08-28 14:58 Binz 阅读(1842) 评论(0) 推荐(0) 编辑
摘要:xml版本查看:https://www.cnblogs.com/binz/p/6564490.html springboot3.x以前的版本查看 https://www.cnblogs.com/binz/p/17421063.html springboot3.x查看 https://www.cnbl 阅读全文
posted @ 2023-05-22 16:44 Binz 阅读(194) 评论(0) 推荐(0) 编辑
摘要:1.springboot方式 1.1新建一个bootstart.sh 1.2 java8内容如下 export JAVA_HOME=/home/jdk/java8 export JRE_HOME=$JAVA_HOME/jre export CLASSPATH=$JAVA_HOME/lib:$JRE_ 阅读全文
posted @ 2023-04-28 16:19 Binz 阅读(283) 评论(0) 推荐(0) 编辑
摘要:其他系统请查看 官网的下载页选择对应的安装 oracle jdk : https://www.oracle.com/java/technologies/downloads/ 微软openjdk : https://learn.microsoft.com/zh-cn/java/openjdk/down 阅读全文
posted @ 2023-03-29 12:04 Binz 阅读(7640) 评论(0) 推荐(0) 编辑
摘要:jmap -histo:live 12484 | head -n 20 12484:pid head -n 20 前20个 阅读全文
posted @ 2022-06-21 11:04 Binz 阅读(85) 评论(0) 推荐(0) 编辑
摘要:原因:因为boot2.3.x版本可能考虑信息安全问题,把以下两个值默认为 server: error: include-message: never include-exception: false 发生异常是返回 { "timestamp": 1632713940269, "status": 50 阅读全文
posted @ 2021-09-27 11:43 Binz 阅读(398) 评论(1) 推荐(0) 编辑
摘要:default Class<T> thisTClass() { Class<?> class1 = getClass(); Class<?> interfaces = class1.getInterfaces()[0]; Type[] genericInterfaces = interfaces.g 阅读全文
posted @ 2021-07-10 10:35 Binz 阅读(666) 评论(0) 推荐(0) 编辑
摘要:seata docker部署:https://www.cnblogs.com/binz/p/12841125.html nacos docker部署:https://www.cnblogs.com/binz/p/12295346.html 此配置基于seata.1.2集成,安装也请安装1.2版本se 阅读全文
posted @ 2020-05-09 16:48 Binz 阅读(1572) 评论(0) 推荐(0) 编辑
摘要:1、链式调用方式 服务A 事务方法的最后一行 调用服务B事务方法, 服务B事务方法的最后一行 调用服务C事务方法 因为都是每个方法的最后一行,从上往下执行,如果有任何一个服务出现问题,那么整条链路都会回滚事物 2、通过mq自己手动回滚业务(补偿事务(TCC)) 比如订单提交,可以先在订单服务完成订单 阅读全文
posted @ 2020-04-29 11:52 Binz 阅读(1068) 评论(1) 推荐(0) 编辑
摘要:maven 引入 工具类 阅读全文
posted @ 2019-12-20 14:28 Binz 阅读(1051) 评论(0) 推荐(0) 编辑
摘要:编译构建指定的模块 mvn clean install -pl model1,model2 -am -Dmaven.test.skip=true 分享一个淘宝、京东、拼多多、饿了么、美团、抖音等等买东西后真实返钱小技巧, 打车、外卖领券,充值话费95折好像也可以 使用教程用微信扫下方二维码查看详细说 阅读全文
posted @ 2019-04-15 10:47 Binz 阅读(4100) 评论(0) 推荐(0) 编辑
摘要:logs_paths[0]="xxxx_tomcat8_9001"; logs_paths[1]="xxxx_tomcat8_9002"; for logs_path in ${logs_paths[@]} do echo "执行GC回收 $logs_path" tomcatid=$(ps -ef| 阅读全文
posted @ 2019-04-15 10:45 Binz 阅读(6011) 评论(0) 推荐(0) 编辑
摘要:1、自定义DataSource 2、数据源切换器 3、代理类事物切换数据源 4、数据源Bean注册器 6、资源文件配置 阅读全文
posted @ 2019-02-28 18:40 Binz 阅读(426) 评论(0) 推荐(0) 编辑
摘要:第三方使用公钥.crt加密后返回的内容,需要使用私钥解密.pem 返回内容格式如下 MIME-Version: 1.0 Content-Disposition: attachment; filename="smime.p7m" Content-Type: application/pkcs7-mime 阅读全文
posted @ 2018-10-23 10:21 Binz 阅读(2248) 评论(0) 推荐(0) 编辑
摘要:如果你在你的实体类上面指定了@JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8") 然后发现换成json后 小于 1991-09-14 22:59:59 这个时间的 每年的5、6、7、8、9 月 小于 09-14 22:59:59 这个时间都少一个小 阅读全文
posted @ 2018-08-28 15:24 Binz 阅读(759) 评论(2) 推荐(1) 编辑
摘要:1、先定义一个枚举基类BaseEnum public interface BaseEnum { default String getCode() { return this.name(); } String getDisplayName(); static <E extends Enum<E>> B 阅读全文
posted @ 2018-06-13 17:41 Binz 阅读(9677) 评论(1) 推荐(1) 编辑
摘要:需要把网页标签中的双引号替换为 &quot; 或者 \\\" 例如 <div id=\\\"container\\\" style=\\\"width: 600px;margin: 0 auto\\\"></div> or <div id=&quot;container&quot; style=&q 阅读全文
posted @ 2018-01-26 17:12 Binz 阅读(358) 评论(0) 推荐(0) 编辑
摘要:* 元注解@Target,@Retention,@Documented,@Inherited * * @Target 表示该注解用于什么地方,可能的 ElemenetType 参数包括: * ElemenetType.CONSTRUCTOR 构造器声明 * ElemenetType.FIELD 域声 阅读全文
posted @ 2017-12-14 17:10 Binz 阅读(507) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示