springBoot
老新人
这个作者很懒,什么都没留下…
展开
-
【异常】nested exception is java.lang.NoClassDefFoundError: redis/clients/jedis/util/SafeEncoder
原因是 版本冲突。以下我原本使用的版本信息<!-- Spring Boot Redis 依赖 --><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis<...原创 2020-01-03 13:19:29 · 13855 阅读 · 2 评论 -
RestFull 的 CRUD 的四种 方式
HTTP 常用的 四种请求方式GET: 获取资源 POST:创建或更新资源 PUT: 创建或更新资源 DELETE:删除资源GET 对应 selectDELETE 对应 delete这里主要描述一下 POST 与 PUT 的区别,即对应的 update 和 insert:在更新资源的操作上,POST 和 PUT 基本相同。在创建资源时,PUT可以指定资源路径,POST无法...原创 2019-06-17 17:16:44 · 863 阅读 · 0 评论 -
浅谈SpringBoot处理url中的参数的注解
1.介绍几种如何处理url中的参数的注解@PathVaribale 获取url中的数据@RequestParam 获取请求参数的值@GetMapping 组合注解,是 @RequestMapping(method = RequestMethod.GET) 的缩写(1)PathVaribale 获取url中的数据看一个例子,如果我们需要获取Url=localhost:8080/h...原创 2019-06-14 10:21:20 · 254 阅读 · 0 评论 -
The bean '.FeignClientSpecification', defined in null, could not be registered. A bean with that nam
错误信息:Description:The bean 'sxbs-mall3.FeignClientSpecification', defined in null, could not be registered. A bean with that name has already been defined in null and overriding is disabled.截图:...原创 2019-06-12 18:23:14 · 8780 阅读 · 3 评论 -
@RequestParam Required String parameter 'delJsonString' is not present
错误代码:2019-06-12 16:05:22.115 WARN 19800 --- [nio-9860-exec-8] Resolved [org.springframework.web.bind.MissingServletRequestParameterException: Required String parameter 'delJsonString' is not prese...原创 2019-06-12 16:16:34 · 1550 阅读 · 0 评论 -
Failed to load property source from location 'classpath:/application.yml 【添加中文注释报错】
错误信息如下:java.lang.IllegalStateException: Failed to load property source from location 'classpath:/application.yml' at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.l...原创 2019-04-25 14:35:12 · 633 阅读 · 0 评论 -
【spring Cloud/spring Boot 2.0】引入链路跟踪Sleuth及Zipkin
我的访问地址:http://localhost:7755/zipkin/注:最后一定要以 " / " 结尾,不然访问不了Zipkin是一种分布式跟踪系统,它有助于收集解决微服务架构中得延迟问题所需的时序数据,它管理这些数据的收集和查找。1. 架构概述跟踪器存在于您的应用程序中,并记录有关发生的操作的时间和元数据。他们经常使用库,因此它们的使用对用户是透明的。例如,已检测的Web服...原创 2019-05-01 22:09:13 · 3162 阅读 · 0 评论 -
Failed to bind properties under 'logging.level' to java.util.Map java.lang.String, java.lang.String
springBoot 2.0 添加 日志级别,启动报错:org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'logging.level' to java.util.Map<java.lang.String, java.lang.String&...原创 2019-05-01 20:26:30 · 23940 阅读 · 10 评论 -
springboot 2.0 config client 刷新问题(Post给http://localhost:8080/refresh,返回的是404错误)
问题:手动修改config-client.properties的内容后,刷新 config Server URL: http://localhost:8888/config-client/default/master, 修改的内容可以被显示过来,但是刷新config client URL: http://localhost:8080/, 看到的还是修改前的内容。尝试用postman发...原创 2019-04-25 23:39:00 · 1622 阅读 · 0 评论