springboot
一点一点深入
自由早晚乱余生
IT
展开
-
nacos discovery和config
nacos discovery和config原创 2023-02-18 17:33:13 · 4373 阅读 · 0 评论 -
springboot注册不上远程nacos服务解决办法
springboot注册不上远程nacos服务解决办法原创 2023-02-18 15:19:38 · 5197 阅读 · 0 评论 -
Spring Security-AuthenticationManager执行登录认证过程
1.AuthenticationManager是一个接口,只有一个方法 authenticate,入参和返回值都 Authentication。AuthenticationManager接口:2.ProviderManager实现了AuthenticationManager接口,ProviderManager委托AuthenticationProvider接口去实现认证过程,有个抽象方法authenticateProviderManager实现的authenticate方法:Aut.原创 2022-04-10 03:00:00 · 2269 阅读 · 1 评论 -
idea设置run dashboard
现在项目都可以说是基于分布式的,各个模块较多,启动后看控制台信息不清晰。如果将所有服务放在dashboard,则是一目了然。<component name="RunDashboard"> <option name="configurationTypes"> <set> <option value="SpringBootApplicationConfigurationType" /> </set>...原创 2022-04-08 20:00:00 · 235 阅读 · 0 评论 -
springboot配置文件加载及生效
springboot工程配置文件用application.properties或者是application.yml,两者格式不一样,后者结构更清晰,更简洁。默认4个位置可以放置配置文件1.项目根目录下的config文件夹2.项目根目录下3.classpath目录下的config文件夹4.classpath目录下(常用这个位置)加载配置文件的优先级如下图所示,每个目录下都会加载注意:1.假如多个配置文件存在同样的配置项,优先级高的生效,优先级的不生效2.每个配置文件的配原创 2022-02-11 15:58:53 · 2388 阅读 · 0 评论