- 博客(14)
- 收藏
- 关注
原创 Failed to connect to repository : org.eclipse.jgit.errors.TransportException: xxxx
Failed to connect to repository : org.eclipse.jgit.errors.TransportException: xxxx
2022-01-13 16:38:44
979
原创 vm虚拟机蓝屏错误代码SYSTEM_SERVICE_EXCEPTION
新买了redmibookpro14 最新i5 11320H安装虚拟机后满心欢喜copy了旧电脑的hadoop结果运行就蓝屏,。。。解决方案把这两个玩意勾选上就行了
2021-12-18 23:03:43
3052
原创 2021-11-15
Cacheable作用springboot使用缓存需要开启基于注解的缓存,使用 @EnableCaching 在 springboot 主启动类上例子:@Cacheable(cacheNames = “USERINFO”, key = "‘KEY:’ + #bean.getId() + #bean.getAge() + #bean.getName())cacheNames :给缓存起一个名字叫 USERINFO,可以在配置文件中 通过这个名字给缓存设置失效时间,也可以不配置key :我理解为要缓存
2021-11-15 17:04:18
620
原创 while getopts作用
背景:要写一个脚本每天统计昨天的数据执行脚本可以传入时间那么可以用while getopts 来循环获取参数众所周知执行脚本时是可以给参数的例如执行脚本sh test.sh -d 20211109意思是执行test.sh脚本 给了参数 -d 值是20211109那么while getopts “r:” opt; doecho “this is $opt, $OPTARG”case $opt ind)runDt=date -d $OPTARG +%Y%m%d;;esacdone这
2021-11-09 11:40:21
733
原创 2021-10-28
There is no getter for property named ‘’ in 'class xxx.entity.## 标题1、实体类中我有get方法2、mapper.xml我自己对比发现图中这里我写成了大写。。。现在改正为小写。开发还是得细心,一步错都不行滴
2021-10-28 09:57:05
79
原创 A problem occurred evaluating root project ‘riskauth‘. > Applying script plugins from insecure URIs,
Build file ‘E:\zhifufengkong\riskauth\build.gradle’ line: 14A problem occurred evaluating root project ‘riskauth’.Applying script plugins from insecure URIs, without explicit opt-in, is unsupported. The provided URI XXX’ uses an insecure protocol (HTTP)
2021-10-18 15:04:34
1012
原创 Nginx启动报错: could not open error log file: open() &q unable to find local peer: 192.168.10.102:8848,
记录本人1个Nginx+3个nacos注册中心+1个mysql报错解决nacos报错nacos集群模式部署 unable to find local peer: 192.168.10.102:8848, all peers [192.168.10.102:3333 192.168.10.102:4444, 192.168.10.102:5555]could not open error log file: open() 原因:nginx没有权限操作logs文件,解决办法 给logs文件赋权限。不过后面还
2021-09-09 15:39:12
4053
原创 Error: Could not open client transport with JDBC Uri: jdbc:hive2://hadoop103:10000: java.net.Connect
在配置hive的时候报这个错误,Error: Could not open client transport with JDBC Uri: jdbc:hive2://hadoop103:10000: java.net.ConnectException: 拒绝连接 (Connection refused) (state=08S01,code=0)网上看了很多什么jar包冲突等等都没有解决。最后在b站有同志给出了解决方法,我用了很有效。设置impersonation,这样hive server会以提交用户
2021-09-02 15:55:50
3758
原创 Thymeleaf模板未生效原因
看看Controler中注解在哪是不是配置有错,应该用@Controller,而不用@RestController
2021-08-30 15:44:20
1724
原创 Consider defining a bean of type com.tb.springcloude.service.PaymentHystrix
原因是我用了Feign,但是在主启动里面没有用@EnableFeignClients注解@SpringBootApplication@EnableFeignClientspublic class OrderHystrixMain80 { public static void main(String[] args) { SpringApplication.run(OrderHystrixMain80.class,args); }}...
2020-06-07 10:56:18
718
原创 Caused by: java.lang.IllegalStateException: PathVariable annotation was empty on param 0
我是在写接口的时候,发生此错误的,发现原因是因为@PathVariable没有给参数,在此记录错误的:public CommonResult getPaymentById(@PathVariable() Long id);正确的:public CommonResult getPaymentById(@PathVariable(“id”) Long id);...
2020-06-04 17:23:38
409
原创 未能配置数据源:未指定“url”属性,无法配置嵌入的数据源。
application.yml配置数据源的时候要注意:spring是顶格的,datasource是要缩进的,不缩进会报找不到url错误!spring: application: name: cloud-payment-service datasource: type: com.alibaba.druid.pool.DruidDataSource # 当前数据源操作类型 driver-class-name: org.gjt.mm.mysql.D
2020-06-02 19:46:12
3872
原创 IDEA下Maven依赖包下载不下来的问题解决方案
IDEA下Maven依赖包下载不下来的问题解决方案我今天遇到这样的问题,看了各种博客,我的问题是settings.xml文件设置出了问题IDEA中Maven依赖包下载不了的问题我今天遇到这样的问题,看了各种博客,我的问题是settings.xml文件设置出了问题首先去...
2020-01-30 11:35:52
1464
3
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人