- 博客(4)
- 资源 (1)
- 问答 (3)
- 收藏
- 关注
原创 SpringCloud GateWay 的配置类
一 统一处理跨域 @Configuration public class CorsConfig { @Bean public CorsWebFilter corsFilter() { CorsConfiguration config = new CorsConfiguration(); config.addAllowedMethod("*"); config.addAllowedOrigin("*"); config.addAl
2020-08-20 20:26:46 470
原创 Springboot整合redis
一 导入依赖 <!-- redis --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> <!-- spring2.X集成redis所需common-pool2--> <dependen
2020-08-19 21:19:00 103
原创 HystrixDashboard 监控页面 Unable to connect to Command Metric Stream.
问题如下 解决方案: 在监控模块的yml中添加 hystrix: dashboard: proxy-stream-allow-list: "*" 然后在被监控模块的启动类中添加 @Bean public ServletRegistrationBean getServlet(){ HystrixMetricsStreamServlet hystrixMetricsStreamServlet = new HystrixMetricsStreamServle
2020-08-10 18:57:28 1257 4
原创 java基础笔记
7.06—基本局部变量、引用类型放在栈中 对象放在堆中 String放在常量池 static放在方法区。 命名规则:包小写 类大驼峰 方法及变量 小驼峰 标识符:字母、数字、下划线及$ 变量类型:基本数据类型(整形(byte short int long)、浮点型(float double)、字符型(char)布尔型(bool)) 引用类型(类 接口 数组) 自动类型提升:容量小的像容量大的提升 byte char short -> int 强转:容量大的像容量小的强转 可能造成精度损失
2020-08-08 18:06:10 115
增量备份按时间点恢复没生效,啥数据都没了,日志如下,怎么解决啊
2022-05-06
ideal找不到Scanner类咋办啊
2020-10-03
TA创建的收藏夹 TA关注的收藏夹
TA关注的人