- 博客(8)
- 收藏
- 关注
原创 [SpringCloud]4. service-zuul
1. Cloud Discovery ☑️Eureka Server Cloud Routing ☑️Zuul2. ServiceZuulApplication通过注解@EnableDiscoveryClient 向服务中心注册通过注解@EnableZuulProxy 开启zuul的功能import org.springframework.boot.SpringApplication; imp...
2018-06-14 15:00:52 214
原创 [SpringCloud]3. service-feign
1. Web ☑️Web Cloud Discovery ☑️Eureka Server Cloud Routing ☑️Feign2. ServiceFeignApplication通过注解@EnableDiscoveryClient 向服务中心注册通过注解@EnableFeignClients 开启Feign的功能import org.springframework.boot.Spri...
2018-06-14 13:51:03 201
原创 [SpringCloud]2. service-hi
1. Cloud Discovery ☑️Eureka Server2. ServiceHiApplication通过注解@EnableEurekaClient 表明自己是一个EurekaClientimport org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.Spr...
2018-06-14 13:11:21 469
原创 [SpringCloud]1. eureka-server
1. Cloud Discovery ☑️Eureka Server2. EurekaServerApplication在springboot工程的启动Application类上加一个注解@EnableEurekaServer,启动一个服务注册中心import org.springframework.boot.SpringApplication; import org.springframewor...
2018-06-14 10:29:49 199
原创 [SpringBoot]2. mysql+mybatis+druid整合
application.ymlspring: datasource: type: com.alibaba.druid.pool.DruidDataSource # https://github.com/alibaba/druid/tree/master/druid-spring-boot-starter druid: # JDBC配置 url: ...
2018-06-07 14:48:52 551
原创 [SpringBoot]1. devtools
pom.xml<!-- 支持热部署: 1. 修改类–>保存:应用会重启 2. 修改配置文件–>保存:应用会重启 3. 修改页面–>保存:应用不会重启,但会重新加载,页面会刷新 --> <dependency> <groupId>org.springframework.boot</groupId> <artifa...
2018-06-07 09:55:46 153
原创 [Virtual Machine]CentOS7同步时间
[root@localhost ~]# yum install -y ntp [root@localhost ~]# ntpdate asia.pool.ntp.org
2018-06-06 16:52:33 181
原创 [Virtual Machine]CentOS7基本配置--安装Redis
下载/安装最新版Redis点击打开链接scp /Users/xxx/Downloads/redis-....tar.gz root@192.168.xx.xxx:/usr/local/src安装[root@localhost src]# tar -xzvf redis-....tar.gz[root@localhost src]# cd /usr/local/src/redis-4.0.9直接编译...
2018-06-06 13:34:03 167
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人