Wesley13 Wesley13
3年前
Spring Cloud Eureka源代码解析(1)Eureka启动,原生启动与SpringCloudEureka启动异同
Eureka作为服务注册中心对整个微服务架构起着最核心的整合作用,因此对Eureka还是有很大的必要进行深入研究。Eureka1.x版本是纯基于servlet的应用。为了与springcloud结合使用,除了本身eureka代码,还有个粘合模块springcloudnetflixeurekaserver。在我们启动EurekaServer实例
Stella981 Stella981
3年前
Spring Boot 2发送邮件手把手图文教程
点击上方 IT牧场 ,选择 置顶或者星标技术干货每日送达!本文基于:Spring Boot 2.1.3,理论支持Spring Boot 2.x所有版本。最近有童鞋问到笔者如何用Spring Boot发送邮件,故而整理下Spring Boot发送邮件的各种姿势。说到邮件放松,相信大家对SpringFramework提供的接
Wesley13 Wesley13
3年前
@Repository、@Service、@Controller 和 @Component
@Repository、@Service、@Controller(https://my.oschina.net/u/1774615)和@Component将类标识为Beanspring自2.0版本开始,陆续引入了一些注解用于简化Spring的开发。@Repository注解便属于最先引入的一批,它用于将数据访问层(DAO层)的类
Stella981 Stella981
3年前
Maven 项目下slf4j 包冲突问题
今天遇到Maven下Jar包冲突问题.由于Mavenjar包是自动依赖..但是jar包依赖的版本不一样..会造成冲突就比如遇到:org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;说的slf4j
Stella981 Stella981
3年前
Spring Cloud:多环境配置、eureka 安全认证、容器宿主机IP注册
记录一下搭建SpringCloud过程中踩过的一些坑,测试的东西断断续续已经弄了好多了,一直没有时间整理搭建过程,时间啊~时间~Spring版本SpringBoot:2.0.6.RELEASESpringCloud:Finchley.SR2多环境配置切换使用Sp
Easter79 Easter79
3年前
SpringBoot内嵌Tomcat开启APR模式(运行环境为Centos7)
网上查到的一些springboot内嵌的tomcat开启apr的文章,好像使用的springboot版本较老,在SpringBoot2.0.4.RELEASE中已经行不通了。自己整理了一下,供参考。运行环境:Centos7,JDK1.81.pom.xml代码如下:<projectxmlns"http://maven.apache
Stella981 Stella981
3年前
Centos7安装RabbitMQ解决Erlang依赖报错
通过yum等软件仓库都可以直接安装RabbitMQ,但版本一般都较为保守。RabbitMQ官网提供了新版的rpm包(http://www.rabbitmq.com/download.html(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Flink.jianshu.com%3Ft%
Wesley13 Wesley13
3年前
Polyfill简介
1.什么是Polyfill?Polyfill是一个js库,主要抚平不同浏览器之间对js实现的差异。比如,html5的storage(session,local),不同浏览器,不同版本,有些支持,有些不支持。Polyfill(Polyfill有很多,在GitHub上https://github.com/Modernizr/Modernizr/wiki/
可莉 可莉
3年前
13.1 设置更改root密码 13.2 连接mysql 13.3 mysql常用命令
第13章MySQL常用操作MySQL版本5.6.3513.1设置、更改root用户密码首次直接使用mysql会提示‘该命令不存在’,原因是还没有将该命令加入环境变量,如果要使用该命令,需要使用其绝对路径:/usr/local/mysql/bin/mysql,为了方便,先将其
Stella981 Stella981
3年前
SpringBoot内嵌Tomcat开启APR模式(运行环境为Centos7)
网上查到的一些springboot内嵌的tomcat开启apr的文章,好像使用的springboot版本较老,在SpringBoot2.0.4.RELEASE中已经行不通了。自己整理了一下,供参考。运行环境:Centos7,JDK1.81.pom.xml代码如下:<projectxmlns"http://maven.apache