会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
浅笑19
首页
新随笔
联系
订阅
管理
上一页
1
···
29
30
31
32
33
34
35
36
37
38
下一页
2021年1月23日
@NotNull 、@NotBlank、@NotEmpty三者的区别
摘要: @NotNull: 主要用在基本数据类型上(Integer、Double...) @NotBlank : 主要用在String字符串上面 @NotEmpty: 主要用在集合类或者数组上面
阅读全文
posted @ 2021-01-23 12:55 浅笑19
阅读(540)
评论(0)
推荐(0)
2021年1月22日
spring cloud gateway 转发至lb服务一直报failed to resolve 'DESKTOP-GOA8U1F' after 2 queries
摘要: 问题如题一直抛出如下错误 failed to resolve 'DESKTOP-GOA8U1F' after 2 queries 服务是正常启动的非常怪异 看大概意思是 解析 该站点失败 最后解决方法: 1、开启目标服务的IP注册 eureka.instance.prefer-ip-address=
阅读全文
posted @ 2021-01-22 14:56 浅笑19
阅读(3984)
评论(0)
推荐(0)
2021年1月19日
eureka 服务端或者 客户端 开启 security 后 出现 :Batch update failure with HTTP status code 401错误
摘要: 直接贴解决代码: eureka: # server: # 关闭自我保护模式 # enable-self-preservation: false # 清理下线服务时间 # Eureka Server会定时(间隔值是eureka.server.eviction-interval-timer-in-ms,
阅读全文
posted @ 2021-01-19 18:59 浅笑19
阅读(1462)
评论(0)
推荐(0)
2021年1月17日
Eureka服务下线后快速感知配置
摘要: 现在由于eureka服务越来越多,发现服务提供者在停掉很久之后,服务调用者很长时间并没有感知到变化,依旧还在持续调用下线的服务,导致长时间后才能返回错误,因此需要调整eureka服务和客户端的配置,以便实现服务下线后快速感知。 需要调整服务注册中心、服务提供者和服务消费者三个配置。 服务注册中心Eu
阅读全文
posted @ 2021-01-17 19:27 浅笑19
阅读(575)
评论(0)
推荐(0)
springboot 或者 tomcat 常用启动参数
摘要: -Dspring.profiles.active=test -Dserver.port=8083
阅读全文
posted @ 2021-01-17 18:58 浅笑19
阅读(272)
评论(0)
推荐(0)
eureka 客户端注册Cannot execute request on any known server解决
摘要: eureka server 重写一个配置类即可 @EnableWebSecurity class WebSecurityConfig extends WebSecurityConfigurerAdapter { @Override protected void configure(HttpSecur
阅读全文
posted @ 2021-01-17 17:08 浅笑19
阅读(153)
评论(0)
推荐(0)
修改 SpringBoot 运行时端口号的方法
摘要:
阅读全文
posted @ 2021-01-17 17:06 浅笑19
阅读(218)
评论(0)
推荐(0)
2021年1月14日
CSS垂直居中的8种方法
摘要: 1、通过verticle-align:middle实现CSS垂直居中。 通过vertical-align:middle实现CSS垂直居中是最常使用的方法,但是有一点需要格外注意,vertical生效的前提是元素的display:inline-block。 在使用vertical-align:midd
阅读全文
posted @ 2021-01-14 12:15 浅笑19
阅读(30874)
评论(5)
推荐(3)
2021年1月8日
beforeRouteEnter函数不能获取this如何解决
摘要: const Foo = { template: `...`, beforeRouteEnter (to, from, next) { // 在渲染该组件的对应路由被 confirm 前调用 // 不!能!获取组件实例 `this` // 因为当守卫执行前,组件实例还没被创建 }, beforeRou
阅读全文
posted @ 2021-01-08 18:56 浅笑19
阅读(694)
评论(0)
推荐(0)
vue 进入页面与离开页面触发事件
摘要: 1.切换进入当前路由之前的钩子函数 beforeRouteEnter <script> export default { beforeRouteEnter(to, form, next) { next() } } </script> 2.离开当前路由之前的钩子函数 beforeRouteLeave
阅读全文
posted @ 2021-01-08 18:51 浅笑19
阅读(4182)
评论(0)
推荐(0)
上一页
1
···
29
30
31
32
33
34
35
36
37
38
下一页
公告