摘要:
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. ) 阅读全文
摘要:
net.sf.jasperreports.engine.util.JRFontNotFoundException: Font "仿宋" is not available to the JVM. See the Javadoc for more details.
at net.sf.jasperreports.engine.fonts.FontUtil.checkAwtFont(FontUtil.java:581)
原因jar启动去加载取消对应的字体
项目版本说明
jdk8
spring-cloud Hoxton.SR9
spring-boot 2.3.9.RELEASE
jasperreports 6.20.5
Jaspersoft Studio 6.20.5 阅读全文
摘要:
java 在linux上 start、stop、restart、status等启动命令,sh脚本,appMgr.sh 放在reources/ops下 #!/usr/bin/sh APP_NAME="@project.name@-@project.version@.jar" DEPLOY_PATH=` 阅读全文
摘要:
MapperScannerConfigurer中获取applicayion.yml配置,进行动态加载BasePackage
由于在MapperScannerConfigurer的bean 优先于@value,导致@value取出来的时候都是null,所以只能使用Environment 来获取值 阅读全文
摘要:
[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.7:generate (default-cli) on project com-zhianchen-pgsql: Execu 阅读全文
摘要:
解决spring mvc设置controller切面无效 阅读全文
摘要:
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属性的值 阅读全文
摘要:
maven pem.xml <dependency> <groupId>org.bouncycastle</groupId> <artifactId>bcprov-jdk15on</artifactId> <version>1.70</version> <!-- 请根据需要检查最新版本 --> </ 阅读全文
摘要:
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 阅读全文
摘要:
maven pom <dependencies> <dependency> <groupId>org.bouncycastle</groupId> <artifactId>bcpg-jdk15on</artifactId> <version>1.68</version> </dependency> 阅读全文