代码改变世界

IDEA显示 Cannot resolve symbol xxxxxxxxxxxxxxxxxxxxx

2021-04-04 12:23 by 方斌, 447 阅读, 0 推荐, 收藏,
摘要:菜单 "File" > "Invalidate Caches / Restart" > "Invalidate and Restart" 阅读全文

SpringMVC中静态获取request对象 Spring中获取 HttpServletRequest对象【转载】

2021-04-03 18:57 by 方斌, 450 阅读, 0 推荐, 收藏,
摘要:一、web.xml 中配置Listener <listener> <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class> </listener> 二、代码实现 1、 阅读全文

springcloud 的loadbalancer 轮询算法切换方法 2021.4.3

2021-04-03 11:32 by 方斌, 1930 阅读, 0 推荐, 收藏,
摘要:loadbalancer修改轮询方法 在做练习,整合springboot springcloud springcloud alibab中发现,最新的eureka client集成的负载均衡已经替换为spring 的loadbalancer 在此整理下基本的替换轮询算法的方法 整合的框架版本如下 <d 阅读全文

springboot项目启动增加图标

2021-04-02 14:07 by 方斌, 249 阅读, 0 推荐, 收藏,
摘要:首先我们在resource目录下面放入一个banner.txt文件,Spring Boot启动项目的时候就会优先启动这个文件中的内容。 然后我们用在线生成字符图标工具 http://www.network-science.de/ascii/ http://patorjk.com/software/t 阅读全文

rabbitmq 端口作用以及修改方法

2021-04-02 11:06 by 方斌, 11138 阅读, 0 推荐, 收藏,
摘要:rabbitmq 端口 参考 https://www.rabbitmq.com/networking.html#ports Port Access RabbitMQ nodes bind to ports (open server TCP sockets) in order to accept cl 阅读全文

centos8 安装rabbitmq

2021-04-01 08:37 by 方斌, 1267 阅读, 0 推荐, 收藏,
摘要:centos8 安装rabbitmq 更换阿里云repo http://mirrors.aliyun.com/repo/ 下载 Centos-8.repo 查询最新的mq版本以及对应的erlang信息 参考url https://www.rabbitmq.com/which-erlang.html 阅读全文

springcloud config client Value获取不到信息的问题的处理方法

2021-03-31 14:30 by 方斌, 576 阅读, 0 推荐, 收藏,
摘要:注意事项 git工程中的配置文件 写的是 [文件名]-[profile].yml config client 的 配置文件中 spring.application.name=配置文件的[文件名];要么将spring.cloud.config.name 直接设置为[文件名]即可。 配置文件冒号后要有空 阅读全文

springcloud config配置git作为数据源然后启动报错 If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.

2021-03-31 10:34 by 方斌, 515 阅读, 0 推荐, 收藏,
摘要:不想连接数据库的话有以下解决方案 解决方案1 @SpringBootApplication(exclude = ) @SpringBootApplication(exclude = {DataSourceAutoConfiguration.class}) // 激活配置中心 @EnableConfi 阅读全文

Sublime Text的列模式如何操作

2021-03-30 10:34 by 方斌, 616 阅读, 0 推荐, 收藏,
摘要:苹果:OS X -鼠标左键+Option -或者鼠标中键 -增加选择:Command,减少选择:Command+Shift Windows: -鼠标右键+Shift -或者鼠标中键 -增加选择:Ctrl,减少选择:Alt 3 Linux: -鼠标右键+Shift -增加选择:Ctrl,减少选择:Al 阅读全文

centos8 安装redis

2021-03-29 08:53 by 方斌, 499 阅读, 0 推荐, 收藏,
摘要:centos8 安装redis 下载 https://redis.io/ 编译 yum install make yum install gcc make 安装 mke install 在/etc目录下新建redis目录 [root@CentOS7 redis-5.0.5]# mkdir -pv / 阅读全文
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 21 下一页