• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

yxchun

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

上一页 1 2 3 4 5 6 7 8 9 ··· 31 下一页

2024年11月5日

Maven项目打包,打入pom文件中依赖

摘要: mainClass是指程序入口 <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>3.2.0</version> <executions> 阅读全文

posted @ 2024-11-05 16:27 yxchun 阅读(32) 评论(0) 推荐(0)

LOG4J每天生成1个日志文件

摘要: (1)org.apache.log4j.ConsoleAppender(控制台)(2)org.apache.log4j.FileAppender(文件)(3)org.apache.log4j.DailyRollingFileAppender(每天产生一个日志文件)(4)org.apache.log4 阅读全文

posted @ 2024-11-05 09:20 yxchun 阅读(186) 评论(0) 推荐(0)

2024年11月4日

Cannot resolve plugin org.springframework.boot:spring-boot-maven-plugin 报错

摘要: 1、检查maven镜像,使用阿里云的; http://maven.aliyun.com/nexus/content/groups/public/ 如果你的maven能下载其他依赖,下载不了这个,说明不是镜像问题; 2、给插件加上版本号; 比如 <plugin> <groupId>org.spring 阅读全文

posted @ 2024-11-04 14:24 yxchun 阅读(924) 评论(0) 推荐(0)

2024年11月3日

Spring , PropertiesLoaderUtils.loadProperties 读取绝对路径配置文件

摘要: package testReadFile; import org.springframework.core.io.FileSystemResource; import org.springframework.core.io.Resource; import org.springframework.c 阅读全文

posted @ 2024-11-03 17:41 yxchun 阅读(53) 评论(0) 推荐(0)

2024年11月1日

将java程序打成exe工具,exe4j

摘要: 下载链接: https://www.ej-technologies.com/exe4j/download 阅读全文

posted @ 2024-11-01 11:36 yxchun 阅读(27) 评论(0) 推荐(0)

Java读取properties配置文件

摘要: 需要导入的jar <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>5.3.14</version> </dependency> 方法:使用Spring  阅读全文

posted @ 2024-11-01 10:05 yxchun 阅读(28) 评论(0) 推荐(0)

2024年8月19日

sonarqube添加一条自定义规则,扫描文件中出现的username和password,方法二,使用implements Sensor

摘要: 特别指出: 所以,sonarqube默认过滤掉了resources下的文件; 以下代码可以扫出yml / xml /properties 等文件中的敏感字符,当然是放在src/main下的,不是resources; 下载源码与使用详情参考: Sonarqube 自定义规则,部署SonarSource 阅读全文

posted @ 2024-08-19 14:37 yxchun 阅读(636) 评论(0) 推荐(0)

Sonarqube,标识代码中的username/password关键字,分别使用Tree.Kind.STRING_LITERAL 、Tree.Kind.IDENTIFIER、Tree.Kind.TEXT_BLOCK

摘要: 关于Tree.Kind.STRING_LITERAL 、Tree.Kind.IDENTIFIER、Tree.Kind.TEXT_BLOCK等各个区别,请参考: Tree.Kind.STRING_LITERAL 、Tree.Kind.IDENTIFIER、Tree.Kind.TEXT_BLOCK 区别 阅读全文

posted @ 2024-08-19 14:17 yxchun 阅读(89) 评论(0) 推荐(0)

SonarQube-java , Tree.Kind.STRING_LITERAL 、Tree.Kind.IDENTIFIER、Tree.Kind.TEXT_BLOCK 区别

摘要: 在 SonarQube Java 插件开发中,Tree.Kind.STRING_LITERAL、Tree.Kind.IDENTIFIER 和 Tree.Kind.TEXT_BLOCK 是用于表示不同类型 Java 代码节点的常量。 1. Tree.Kind.STRING_LITERAL 用途: 表示 阅读全文

posted @ 2024-08-19 14:13 yxchun 阅读(103) 评论(0) 推荐(0)

sonarqube添加一条自定义规则,扫描文件中出现的username和password,方法一

摘要: 下载源码与使用详情参考:Sonarqube 自定义规则,部署SonarSource / sonar-java源码中示例规则:docs/java-custom-rules-example - yxchun - 博客园 (cnblogs.com) 假设你已经有了sonarqube-java源码,并且已经 阅读全文

posted @ 2024-08-19 11:04 yxchun 阅读(794) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 9 ··· 31 下一页
 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3