SpringBoot
蔡的一批
分享吧
展开
-
动态扩展Rest接口地址,动态卸载Rest接口
动态扩展Rest接口地址,动态卸载Rest接口 import org.apache.commons.io.FilenameUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.config.BeanDefinition; import org.springframework.context.ApplicationContext; impor原创 2021-04-09 11:39:55 · 353 阅读 · 0 评论 -
nacos学习笔记(一)
nacos学习笔记 1.概览 官网地址:https://nacos.io/zh-cn/docs/what-is-nacos.html Nacos 致力于帮助您发现、配置和管理微服务。Nacos 提供了一组简单易用的特性集,帮助您快速实现动态服务发现、服务配置、服务元数据及流量管理。 Nacos 帮助您更敏捷和容易地构建、交付和管理微服务平台。 Nacos 是构建以“服务”为中心的现代应用架构 (例如微服务范式、云原生范式) 的服务基础设施。 2.使用 1. 踩坑纪录(版本) 有时候版本不一致,会导致服务注册原创 2020-09-21 20:46:53 · 402 阅读 · 0 评论 -
pipeline持续集成到k8s集群
pipeline持续集成到k8s集群 安装jenkins 1.创建命名空间 kubectl create namespace jenkins kubectl get namespace 2.vim jenkins.yaml apiVersion: apps/v1 kind: Deployment metadata: name: jenkins-deployment spec: replicas: 1 selector: matchLabels: app: jenkins原创 2020-09-20 14:17:19 · 340 阅读 · 0 评论 -
关于SpringOauth2理解
关于SpringOauth2理解 OAuth2.0说明 官网学习地址: https://docs.spring.io/spring-security-oauth2-boot/docs/2.2.0.RELEASE/reference/html5/#boot-features-security-oauth2-single-sign-on 角色 在 OAuth2.0 中,有如下角色: ① Authorization Server:认证服务器,用于认证用户。如果客户端认证通过,则发放访问资源服务器的令牌原创 2020-09-15 21:34:17 · 530 阅读 · 2 评论 -
钉钉告警模版
package com.mamcharge.integrate.core.exception.handler; import cn.snowheart.dingtalk.robot.starter.client.DingTalkRobotClient; import cn.snowheart.dingtalk.robot.starter.entity.MarkdownMessage;...原创 2020-03-25 16:20:55 · 1413 阅读 · 0 评论 -
Spring boot自动装载(源码解析)
过几天公司培训,我这边整理了下PPT。顺便写了点代码,我放GitHub上了 Springboot 的基本认识 对于 spring 框架,我们接触得比较多的应该是 spring mvc、 和 spring。而 spring 的核心在于 IOC(控制反转)和 DI (依赖注入)。而这些框架在使用的过程中会需要配置大量 的 xml,或者需要做很多繁琐的配置。 springboot 框...原创 2019-09-21 16:21:51 · 465 阅读 · 0 评论 -
springboot 跨域问题
package com.jeespring.common.config; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.CorsRegistry; import org.springframework....原创 2018-09-30 11:55:14 · 112 阅读 · 0 评论