随笔分类 - JAVA
JAVA
摘要:日志配置如下:如何将不同业务模块产生的日志 分多文件记录 此时 Spring Boot Admin 中看不了 Client 的日志 Logfile ViewerBy default the logfile is not accessible via actuator endpoints and th
阅读全文
摘要:直接将值返回给对象 <select id="list" resultType="com.vipsoft.base.entity.UserInfo"> SELECT Id,Title FROM User </select> 如果字段和属性名不一致时,通过 resultMap 做映射 <resultMa
阅读全文
摘要:思路,将依赖的第三方jar包,移到启动jar包个面外部加载 jar 包 SpringBoot Jar 包太大 瘦身 【初试】简单应用 SpringBoot Jar 包太大 瘦身 【终极版】,建议使用这种方式,如果是docker,通过映射的方式,不要将 lib 打到镜像里面 1.导出 依赖的 jar
阅读全文
摘要:SpringBoot Jar 包太大 瘦身,建议使用时,参考: SpringBoot Jar 包太大 瘦身 【终极版】 29M, 排除少量JAR包方式 打包,排除指定jar 包 <build> <plugins> <plugin> <groupId>org.springframework.boot<
阅读全文
摘要:JAVA 获取 URL 指定参数的值 @Test void regexTest() { String url = "https://www.cnblogs.com/vipsoft/p/15213397.html?name=abc&age=123"; String result = getFieldV
阅读全文
摘要:发现 static 或 public 下面的图片无法访问 spring: profiles: active: dev resources: static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath
阅读全文
摘要:SoapUI 调WebService 报 No running communication point is configured to process this request. 错误 检查入参是否有特殊符号 <soap:Envelope xmlns:soap="http://www.w3.org
阅读全文
摘要:开始提示 鼠标点到类名称上面,Alt+Enter 或者 通过小灯泡提示,点击生成 serialVersionUID
阅读全文
摘要:项目中,两个模块中都放了 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.
阅读全文