- 博客(5)
- 收藏
- 关注
原创 多模块远程调用
配置安装nacos,数据库创建nacos数据库,执行nacos目录下的conf的sql脚本 配置文件:spring.cloud.nacos.discovery.server-addr=127.0.0.1:8848 spring.application.name=service-ucenter (模块名 “_”可能会产生错误) 在相应启动类上配置相应注解: @EnableFeignClients -调用模块配置 @EnableDiscoveryClient -被调模块配置 注册...
2021-06-12 12:29:29
217
1
原创 centos上安装nginx及静态网页的访问
安装nginx:yum install nginx -y 启动nginx:nginx nginx默认访问它自己的目录下的html:/usr/share/nginx/html 在/etc/nginx/nginx.conf下可以更改此配置 重启nginx: nginx -s reload
2021-05-24 18:47:02
231
原创 spring cloud远程调用流程
1、接口化请求调用(模块名称,具体请求方法的路径) 2、fegin:根据模块名找到具体的接口名(服务发现) 3、Hystrix:检测被调模块是否宕机(正常继续调用,宕机就断掉连接) 4、Hibbon:被调端有多个服务,将请求分摊到各个服务中 5、http client:最终发送请求调用被调端 ...
2021-05-16 09:21:20
503
原创 maven加载java包下xml文件
maven默认不会加载java包下的xml文件 常用解决方案如下: 在pom中配置如下 <build> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.xml</include>..
2021-05-12 09:34:16
321
原创 常用注解笔记
MybatisPlus @ApiModelProperty 用于方法,字段, 对model属性的说明或者数据操作更改 @ApiModelProperty(value = "讲师id") @TableLogic 用于字段,表示该字段为逻辑删除 需要配置逻辑删除插件 @Configuration @MapperScan(value = {"com.edu.eduService.mapper"}) public class EduCon...
2021-05-10 09:56:00
109
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅