会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
yytxdy
博客园
首页
博问
闪存
新随笔
订阅
管理
上一页
1
2
3
4
5
6
下一页
2020年5月6日
java for each实现机制
摘要: 源测试代码如下 public class ForEachTest { public void test4Iterate(Iterable<String> strings) { for (String str : strings) { System.out.println(str); } } publ
阅读全文
posted @ 2020-05-06 15:36 yytxdy
阅读(264)
评论(0)
推荐(0)
编辑
2020年5月2日
springboot log4j2
摘要: 添加maven依赖 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan
阅读全文
posted @ 2020-05-02 15:51 yytxdy
阅读(490)
评论(1)
推荐(0)
编辑
springboot freemarker
摘要: springboot可以通过简单的配置集成freemarker 添加maven依赖 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://
阅读全文
posted @ 2020-05-02 11:50 yytxdy
阅读(230)
评论(0)
推荐(0)
编辑
2020年4月30日
springboot actuator
摘要: springboot提供了actuator模块用于线上健康检测以及状态监控 添加actuator maven依赖 <?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmln
阅读全文
posted @ 2020-04-30 10:13 yytxdy
阅读(252)
评论(0)
推荐(0)
编辑
2020年4月29日
springboot websocket demo
摘要: springboot基于websocket实现在线聊天 添加maven依赖 <?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w
阅读全文
posted @ 2020-04-29 11:28 yytxdy
阅读(421)
评论(0)
推荐(0)
编辑
2020年4月24日
springboot jmx
摘要: springboot可以通过实现@ManagedResource,@ManagedAttribute, or @ManagedOperation等接口,将bean暴露为MBean,开启JMX功能需要添加配置: spring.jmx.enabled=true 对应的MBean代码如下: import
阅读全文
posted @ 2020-04-24 15:49 yytxdy
阅读(2886)
评论(0)
推荐(0)
编辑
2020年4月23日
springboot ConfigurationProperties
摘要: springboot可以使用ConfigurationProperties将配置映射为对象,假设有一个服务器列表的配置,服务器拥有ip,端口,名字三个属性,配置文件如下: servers.ips[0]=127.0.0.1 servers.ports[0]=9090 servers.names[0]=
阅读全文
posted @ 2020-04-23 11:51 yytxdy
阅读(534)
评论(0)
推荐(0)
编辑
2020年4月14日
springboot first examle
摘要: 项目基于springboot 2.2.5.RELEASE版本,官网文档链接地址如下: https://docs.spring.io/spring-boot/docs/2.2.5.RELEASE/reference/htmlsingle 使用maven作为项目的构建工具,创建pom.xml <?xml
阅读全文
posted @ 2020-04-14 11:04 yytxdy
阅读(274)
评论(0)
推荐(0)
编辑
2020年3月2日
jboss配置控制台日志输出导致死锁
摘要: 在Jboss中设置了控制台日志输出会导致JBoss死锁,因为Jboss会捕获控制台的输出,并使用log4j进行日志输出,如果在log4j中配置了ConsoleAppender,则会产生一个循环,导致死锁 WildFly, and JBoss AS 7/JBoss EAP 6, capture Sys
阅读全文
posted @ 2020-03-02 18:00 yytxdy
阅读(381)
评论(0)
推荐(0)
编辑
2020年2月26日
java Runtime中maxMemory,totalMemory, freeMemory的含义
摘要: maxMemory是指当前虚拟机最大可以使用的内存,对于jvm配置的xmx参数 totalMemory指的是当前虚拟机运行时所使用的内存,如果在虚拟机启动时,配置了xms参数,那么当前虚拟机初始使用的内存为配置的数值,之后会随着项目运行而增加,最大可以增加至maxMemory freeMemory是
阅读全文
posted @ 2020-02-26 16:42 yytxdy
阅读(1554)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
下一页