摘要:
解决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> <!-- 请根据需要检查最新版本 --> </ 阅读全文
摘要:
pom.xml <dependencies> <dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-core</artifactId> <version>5.8.28</version> </dependency> <depende 阅读全文
摘要:
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> 阅读全文
摘要:
NOClassDefFoundError org.springframework.data.redis.connection.zset.tuple
redisson-spring-boot-starter 使用的版本是3.22.0,查询了下内部集成的spring-boot-starter-web是3.1.0 ,内部使用的spring6,最低要jdk17
而我们使用的spring-boot-starter-web 的版本是2.7.18,内部使用的spring5,
本地debug调试会有默认兼容问题,所以没问题,但是maven打包出去发布就不像了
而我们项目默认的jdk8,所以造成找不到问题
所以到https://mvnrepository.com/artifact/org.redisson/redisson-spring-boot-starter 查询下自己的spring-boot-starter-web 阅读全文
摘要:
vue3使用echarts的tree,自己写事件进行分页
先到npmjs 官网查看当前使用最多的版本
const getChartData = ()=>{
let dom = document.getElementById('chart-container');
myChart = echarts.init(dom, null, {
renderer: 'canvas',
useDirtyRect: false
});
}
myChart.showLoading();
//隐藏单数的节点
flarejson.children.forEach(function (datum, index) {
index % 2 === 0 && (datum.collapsed = true);
}); 阅读全文
摘要:
Vue Router warn]: Unexpected error when starting the router: SyntaxError: Invalid arguments
No match found for location with path 阅读全文
摘要:
vue父组件调用子组件的方法,获取同步(实时)的返回结果 //父组件 <template> <Child ref="childRef"> </template> <script> import Child from '.Child.vue' components:{ Child, } setup(p 阅读全文