随笔分类 -  java

java
摘要:dubbo客户端调用服务端,服务端能接收到,找不到类NoSuchMethodException 阅读全文
posted @ 2026-01-08 12:43 ☆♂安♀★ 阅读(1) 评论(0) 推荐(0)
摘要:mac 设置永久的jdk变量变量,重启电脑后不失效 阅读全文
posted @ 2025-07-15 18:50 ☆♂安♀★ 阅读(46) 评论(0) 推荐(0)
摘要:程序包javax.xml.bind.annotation不存在 程序包javax.xml.bind.annotation.adapters不存在 包com.sun.xml.internal.bind.marshaller不存在 阅读全文
posted @ 2025-07-15 17:55 ☆♂安♀★ 阅读(66) 评论(0) 推荐(0)
摘要:MultipartFile 文件在swaggerUI 显示本地文件上传 阅读全文
posted @ 2025-07-14 18:33 ☆♂安♀★ 阅读(122) 评论(0) 推荐(0)
摘要:进入设置 vi ~/.bash_profile 内容如下,支持多个版本的jdk export JAVA_19_HOME=/Library/Java/JavaVirtualMachines/jdk-19.jdk/Contents/Home export JAVA_8_HOME=/Library/Jav 阅读全文
posted @ 2025-07-13 10:49 ☆♂安♀★ 阅读(14) 评论(0) 推荐(0)
摘要:java -jar arthas_boot.jar 告警 (Can not find java process. Try to run `jps` command lists the instrumented Java Hotspot VMs on the target system. ) 阅读全文
posted @ 2024-11-05 16:12 ☆♂安♀★ 阅读(562) 评论(0) 推荐(0)
摘要:java 在linux上 start、stop、restart、status等启动命令,sh脚本,appMgr.sh 放在reources/ops下 #!/usr/bin/sh APP_NAME="@project.name@-@project.version@.jar" DEPLOY_PATH=` 阅读全文
posted @ 2024-08-07 19:52 ☆♂安♀★ 阅读(139) 评论(0) 推荐(0)
摘要:MapperScannerConfigurer中获取applicayion.yml配置,进行动态加载BasePackage 由于在MapperScannerConfigurer的bean 优先于@value,导致@value取出来的时候都是null,所以只能使用Environment 来获取值 阅读全文
posted @ 2024-08-06 11:48 ☆♂安♀★ 阅读(60) 评论(0) 推荐(0)
摘要:解决spring mvc设置controller切面无效 阅读全文
posted @ 2024-07-09 23:33 ☆♂安♀★ 阅读(188) 评论(0) 推荐(0)
摘要:springboot下的纯html页面乱码带问号? html访问后端接口 返回的 Content-Type: text/html;charset=ISO-8859-1 所以大概率是springboot编码影响到了html页面 在springboot的application.yml加上以下配置 server: servlet: encoding: #enabled: true #让系统的CharacterEncdoingFilter生效 charset: UTF-8 #默认编码格式 force: true #强制request,response都使用charset属性的值 阅读全文
posted @ 2024-07-06 00:24 ☆♂安♀★ 阅读(265) 评论(0) 推荐(0)
摘要:maven pem.xml <dependency> <groupId>org.bouncycastle</groupId> <artifactId>bcprov-jdk15on</artifactId> <version>1.70</version> <!-- 请根据需要检查最新版本 --> </ 阅读全文
posted @ 2024-07-05 14:44 ☆♂安♀★ 阅读(179) 评论(0) 推荐(0)
摘要:org.springframework.retry.TryException: Could not recover; nested exception is java.lang.AbstractMethodError: org.springframework.cloud.netflix.ribbon.RibbonLoadBalancerClient.choose(Ljava/lang/String;Lorg/springframework/cloud/client/loadbalancer/Request;)Lorg/springframework/cloud/client/ServiceInstance; springboot:2.7.18 springcloud:2021.0.4 服务注册中心:Eureka 2.2.9.RELEASE 负载均衡:Ribbon 2.2.9.RELEASE 服务调用:OpenFeign 2.2.9.RELEASE 阅读全文
posted @ 2024-07-01 20:02 ☆♂安♀★ 阅读(91) 评论(0) 推荐(0)
摘要:java aspect 切面怎么获取 POST 数据,以及 获取FormData 文件跟form一起上传时候的参数 package com.test.aop; import com.alibaba.druid.sql.ast.statement.SQLIfStatement; import com. 阅读全文
posted @ 2024-01-25 16:29 ☆♂安♀★ 阅读(654) 评论(0) 推荐(0)
摘要:实体类 public class PageResult<T>{ int page; int limit; Long count; String code; string msg; List<T> data; T example; public PageResult() { } } 转换的utils 阅读全文
posted @ 2023-11-14 15:58 ☆♂安♀★ 阅读(270) 评论(0) 推荐(0)
摘要:pararent的pow.xml <properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <project.build.sou 阅读全文
posted @ 2023-07-03 10:02 ☆♂安♀★ 阅读(77) 评论(0) 推荐(0)
摘要:hikaripool-1 - starting... hikaripool-1 - start completed. 后不执行Application中main的方法,当然也不执行 InitializingBean的afterPropertiesSet , 原因 在@SpringBootApplica 阅读全文
posted @ 2023-02-06 10:39 ☆♂安♀★ 阅读(2041) 评论(0) 推荐(0)
摘要:官方文档 This is README file for Jad - the fast Java Decompiler. Jad home page: http://www.kpdus.com/jad.html Copyright 2001 Pavel Kouznetsov (jad@kpdus.c 阅读全文
posted @ 2023-01-12 11:29 ☆♂安♀★ 阅读(577) 评论(0) 推荐(0)
摘要:import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.servle 阅读全文
posted @ 2022-12-28 22:48 ☆♂安♀★ 阅读(869) 评论(0) 推荐(0)
摘要:1、双亲委派机制 1.1 定义 当一个类加载器收到了类加载的请求的时候,他不会直接去加载指定的类,而是把这个请求委托给自己的父加载器去加载。 如果父类为空,交给bootstrap classloader 加载。 如果类还是无法被加载到,则触发findclass,抛出classNotFoundExce 阅读全文
posted @ 2022-10-22 14:56 ☆♂安♀★ 阅读(178) 评论(0) 推荐(0)
摘要:一、sprinboot部分 1、springboottest 的springboot项目,写了controller测试 import org.springframework.beans.factory.annotation.Value; import org.springframework.web. 阅读全文
posted @ 2022-09-22 18:33 ☆♂安♀★ 阅读(110) 评论(0) 推荐(0)