随笔分类 -  JAVA

上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页
JAVA
摘要:使用新版的 IDEA 可以解决这个问题 SpringBoot yml 小格子 变 小叶子 一般添加十多个模块后会出现这样的情况,正常情况下,看POM 文件里的 spring 引用是否异常 一般把 idea 关了再打开试试,有几次我是关了再开就好了。 1. File -> Project Struct 阅读全文
posted @ 2021-12-22 14:32 VipSoft 阅读(204) 评论(0) 推荐(0)
摘要:也可以用 JNA,但性能没有 JNI 好。JNA的Demo没有做,可以参考(https://www.bilibili.com/video/BV1xU4y1F7Ep/?spm_id_from=autoNext) JNI 参考(https://www.runoob.com/w3cnote/jni-get 阅读全文
posted @ 2021-12-02 14:56 VipSoft 阅读(190) 评论(0) 推荐(0)
摘要:Exception in thread "main" java.lang.UnsatisfiedLinkError: com.vipsoft.demo.JNIDemo.testHello()V at com.vipsoft.demo.JNIDemo.testHello(Native Method) 阅读全文
posted @ 2021-12-02 14:05 VipSoft 阅读(1665) 评论(0) 推荐(0)
摘要:通过getter setter 模板设置 在实体类中 自动添加 @XmlTransient 按 【Alt+Insert】,弹出的提示中选择 Getter and Setter Xml Entity 实体互转(JAXB) Getter Template => JAXBGetter @XmlTransi 阅读全文
posted @ 2021-10-26 12:04 VipSoft 阅读(274) 评论(0) 推荐(0)
摘要:感觉比 xStream 操作起来复杂些 Xml Entity 实体互转(XStream)。但学习成本低些,不需要引用第三方依赖包 需要注意的是 实体中如果加了 getXX 需要在上面加上 @XmlTransient 否则会报“类的两个属性具有相同的名称 Intellij idea getter se 阅读全文
posted @ 2021-10-22 13:01 VipSoft 阅读(381) 评论(0) 推荐(0)
摘要:http://x-stream.github.io/tutorial.html 项目中用了 JAXB 方式 Xml Entity 实体互转(JAXB) 实体: import com.thoughtworks.xstream.annotations.XStreamAlias; import com.t 阅读全文
posted @ 2021-10-22 10:57 VipSoft 阅读(270) 评论(0) 推荐(0)
摘要:JProfiler(Java性能分析神器) v11.1.4 下载 安装目录不要有空格 安装成功后,在 Intellij 里面选择对应的 jprofiler.exe 路径 点击下图JProfiler图标运行 启动完成会自动弹出JProfiler窗口,在里面就可以监控自己的代码性能了。 使用参考: ht 阅读全文
posted @ 2021-10-20 09:59 VipSoft 阅读(446) 评论(0) 推荐(0)
摘要:Admin 服务端配置 添加 POM 引用 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <depende 阅读全文
posted @ 2021-10-12 09:03 VipSoft 阅读(762) 评论(0) 推荐(0)
摘要:添加自定义类: /** * 监控接口的健康情况 * */ @Component public class ApiHealthIndicator implements HealthIndicator { @Override public Health health() { Map<String, St 阅读全文
posted @ 2021-10-11 18:59 VipSoft 阅读(660) 评论(0) 推荐(0)
摘要:Spring Boot Admin 监控SpringBoot 服务的运行情况 https://codecentric.github.io/spring-boot-admin/2.3.0/#spring-boot-admin-server 1. Spring Boot Admin Server 服务端 阅读全文
posted @ 2021-10-09 13:11 VipSoft 阅读(691) 评论(0) 推荐(0)
摘要:java.util.concurrent.TimeoutException message Did not observe any item or terminal signal within 10000ms in 'map' (and no fallback has been configured 阅读全文
posted @ 2021-10-09 12:33 VipSoft 阅读(2947) 评论(0) 推荐(0)
摘要:一直处于离线状态 spring.boot.admin.client.instance.prefer-ip Use the ip-address rather then the hostname in the guessed urls. If server.address / management.a 阅读全文
posted @ 2021-10-09 10:16 VipSoft 阅读(1727) 评论(0) 推荐(0)
摘要:日志配置如下:如何将不同业务模块产生的日志 分多文件记录 此时 Spring Boot Admin 中看不了 Client 的日志 Logfile ViewerBy default the logfile is not accessible via actuator endpoints and th 阅读全文
posted @ 2021-10-08 14:16 VipSoft 阅读(1495) 评论(0) 推荐(0)
摘要:打印 SQL 日志logbak.xml <?xml version="1.0" encoding="UTF-8"?> <configuration debug="true"> <!-- 省略...... --> <!-- mybatis打印sql语句 到 debug 下 --> <logger na 阅读全文
posted @ 2021-09-03 09:42 VipSoft 阅读(673) 评论(0) 推荐(0)
摘要:思路,将依赖的第三方jar包,移到启动jar包个面外部加载 jar 包 SpringBoot Jar 包太大 瘦身 【初试】简单应用 SpringBoot Jar 包太大 瘦身 【终极版】,建议使用这种方式,如果是docker,通过映射的方式,不要将 lib 打到镜像里面 1.导出 依赖的 jar  阅读全文
posted @ 2021-09-02 15:31 VipSoft 阅读(3409) 评论(2) 推荐(0)
摘要:SpringBoot Jar 包太大 瘦身,建议使用时,参考: SpringBoot Jar 包太大 瘦身 【终极版】 29M, 排除少量JAR包方式 打包,排除指定jar 包 <build> <plugins> <plugin> <groupId>org.springframework.boot< 阅读全文
posted @ 2021-09-02 15:11 VipSoft 阅读(794) 评论(0) 推荐(0)
摘要:JAVA 获取 URL 指定参数的值 @Test void regexTest() { String url = "https://www.cnblogs.com/vipsoft/p/15213397.html?name=abc&age=123"; String result = getFieldV 阅读全文
posted @ 2021-09-01 10:02 VipSoft 阅读(2376) 评论(0) 推荐(0)
摘要:发现 static 或 public 下面的图片无法访问 spring: profiles: active: dev resources: static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath 阅读全文
posted @ 2021-08-05 10:39 VipSoft 阅读(793) 评论(0) 推荐(0)
摘要:SoapUI 调WebService 报 No running communication point is configured to process this request. 错误 检查入参是否有特殊符号 <soap:Envelope xmlns:soap="http://www.w3.org 阅读全文
posted @ 2021-08-04 22:28 VipSoft 阅读(620) 评论(0) 推荐(0)
摘要:开始提示 鼠标点到类名称上面,Alt+Enter 或者 通过小灯泡提示,点击生成 serialVersionUID 阅读全文
posted @ 2021-07-27 12:50 VipSoft 阅读(97) 评论(0) 推荐(0)

上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页