- 博客(9)
- 收藏
- 关注
原创 启动Feign 报错 java.lang.IllegalStateException: PathVariable annotation was empty on param 0
value必须指定@PathVariable(value="id")
2020-07-11 15:59:18
378
原创 org.springframework.amqp.AmqpTimeoutException: No available channels
rabbitmq消费者报错接手前同事项目 新加一个queue 报错No available channelsrabbitmq配置spring: rabbitmq: cache: channel: size: 24原因:项目指定的concurrency总数已经24个@RabbitListener(queues = {"${mq.qu...
2020-04-24 14:52:07
2507
原创 docker-compose 部署redis-cluster
1.下载官方 redis.confhttp://download.redis.io/redis-stable/redis.conf2.修改redis.conf# bind 127.0.0.1 //加上注释#protected-mode no //关闭保护模式port 6061 //绑定自定义端口#daemonize yes //禁止redis后台运行pidfile /var...
2019-10-28 10:16:11
1037
原创 springboot + redistemplat的坑
@Autowiredprivate RedisTemplate redisTemplate;HashOperations forHash = redisTemplate.opsForHash();if (forHash.hasKey(1, 2)) { }这个返回true@Autowiredprivate RedisTemplate<String,S...
2019-09-17 11:02:21
247
原创 springboot2.1. es6.x集成封装记录
公司要搭建微服务项目,需要搭建es公共服务安装es修改 elasticsearch.yml配置network.host: 0.0.0.0network.publish_host: 59.110.138.14network.bind_host: 0.0.0.0开始集成封装pom依赖<!--es--><dependency> <...
2019-08-10 11:45:13
786
原创 tcp入门笔记
初学Java的的网络编程java中需要使用 ServerSocket 类和 Socket 类基于请求-xiangyingServerSocket服务端,在客户端未请求时监听端口,当监听到客户端请求时返回一个socket对象,利用io传输数据服务端public class MulThreadSocketServer { public static void main(String [] ar...
2018-06-07 09:47:59
224
原创 Maven报错
javax.validation.ValidationException: Unable to create a Configuration, because no Bean Validation provider could be found. Add a provider like Hibernate Validator (RI) to your classpath.at javax.vali...
2018-06-06 14:55:24
406
原创 初学maven,MyEclipse创建Maven项目没有Maven Denpendices
之前工作环境更换,没有指定仓库位置,修改后刷新正常显示
2018-06-06 14:48:10
759
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人