随笔分类 - JAVA
JAVA
摘要:项目中,两个模块中都放了 Mapper,如下所示 @MapperScan(basePackages ={"com.vipsoft.his.mapper","com.vipsoft.his.sdfyy.mapper"} ) 为了方便,两个合成了一个, @MapperScan(basePackages
阅读全文
摘要:SpringBoot WebService 源代码:https://gitee.com/VipSoft/VipWebService SpringBoot WebService 及 注意项: https://www.cnblogs.com/vipsoft/p/14993568.html 服务端添加拦截
阅读全文
摘要:SpringBoot WebService 源代码:https://gitee.com/VipSoft/VipWebService SpringBoot 版本 <version>2.3.0.RELEASE</version> <cxf.version>3.3.1</cxf.version> <dep
阅读全文
摘要:SpringBoot WebService 源代码:https://gitee.com/VipSoft/VipWebService SpringBoot 整合 WebService cxf 报错 Consider revisiting the entries above or defining a
阅读全文
摘要:Mac /System/Library/Frameworks/JavaVM.framework/Home/bin/java: No such file or directory 查找JAVA_HOME 打开Mac的终端,检查JDK是否安装成功:java -version 查看java指令所在的目录:
阅读全文
摘要:jimmy@MacBook-Pro bin % wsdl2java http://www.webxml.com.cn/WebServices/IpAddressSearchWebService.asmx?wsdl zsh: no matches found: http://www.webxml.co
阅读全文
摘要:在不改程序的情况下,修改 sql 时,需要将 Mapper 中的 XML 文件 放到外面 mybatis: mapper-locations: classpath:mapper/*.xml #JAR 包里面 mybatis: mapper-locations: file:mapper/*.xml #
阅读全文
摘要:@Component public class NettyClient implements ApplicationContextAware { NettyClientHandler nettyClientHandler; /** * 当前 ApplicationContent 后面注入用 */ p
阅读全文
摘要:以下是伪代码 方法一 前后代码省略 //绑定服务器,该实例将提供有关IO操作的结果或状态的信息 ChannelFuture channelFuture = bootstrap.bind(); this.serverChannel = channelFuture.channel(); //给cf 注册
阅读全文
摘要:Maven 引用jar包冲突 ,Intellij 查找排除JAR包的依赖关系(Maven Helper) <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</ar
阅读全文
摘要:监听服务的四种实现方式,以监听 Nacos 服务为例 1. 传统方式 public void subscribe() { try { NamingService namingService = NamingFactory.createNamingService("127.0.0.1:8848");
阅读全文
摘要:<spring-cloud-openfeign.version>2.2.6.RELEASE</spring-cloud-openfeign.version>对应的SpringBoot<version>2.3.0.RELEASE</version> <dependency> <groupId>org.
阅读全文
摘要:安装 filebeat-7.9.3(与Elasticsearch版本一致) 考虑到Elasticsearch 比较费硬盘空间,所以目前项目中只上传error的日志。详细日志还是去具体服务器查看(没有专门运维) 普通安装: 上传并解压filebeat-7.9.3-linux-x86_64.tar.gz
阅读全文
摘要:Filebeat是什么 1、Filebeat是什么?Filebeat是用于转发和集中日志数据的轻量级传送工具。 Filebeat监视用户指定的日志文件或位置,收集日志事件,并将日志数据转发到Elasticsearch或Logstash进行索引。 2、Filebeat和Logstash的关系Logst
阅读全文
摘要:ELK 版本因为 前面 Elasticsearch 用的 7.9.3 版本,所以 kibana-7.9.3、logstash-7.9.3 都用 7.9.3 版本 安装配置 Elasticsearch Docker 安装 Elasticsearch 修改Elasticsearch配置,可以到容器内部修
阅读全文
摘要:下载源码包:https://archive.apache.org/dist/skywalking/8.1.0/ -- 创建存放目录 mkdir -p /opt/skywalking -- 进入目录 cd /opt/skywalking -- 下载agentjar wget https://archi
阅读全文
摘要:前置条件 Docker 安装 Elasticsearch ### 部署服务端 skywalking-oap-server docker pull apache/skywalking-oap-server:8.1.0-es7 docker run --name skywalking-oap-serve
阅读全文
摘要:SpringBoot Skywalking agent 通过 Dockfile 配置 不生效 ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-Dspring.profiles.active=${spring_profile
阅读全文
摘要:如果不指定 xxl.job.executor.ip,默认会用 Docker 的IP,注册到 xxl-job 里面,这时候无法回调 如果xxl.job.executor.ip、xxl.job.executor.address 都赋值,就会出现没端口的情况,具体如下 原因 xxxl.job.ip 为空,
阅读全文
摘要:在 Feign 方法里面添加 Header 报 Method has too many Body parameters @PostMapping(value = "/sendsms") String sendSMS(@HeaderMap Map<String, Object> headerParam
阅读全文
浙公网安备 33010602011771号