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

yxchun

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

公告

11 2024 档案

DevTools 函数使用,获取页面元素
摘要:浏览器控制台使用方法: https://developer.chrome.com/docs/devtools/console/utilities?hl=zh-cn $() 是document.querySelector() 函数的快捷方式; 比如: <input class="el-input__i 阅读全文

posted @ 2024-11-29 14:10 yxchun 阅读(126) 评论(0) 推荐(0)

如何将代码粘贴到浏览器devtools
摘要:粘贴时控制台显示 Warning: Don’t paste code into the DevTools Console that you don’t understand or haven’t reviewed yourself. This could allow attackers to ste 阅读全文

posted @ 2024-11-29 13:28 yxchun 阅读(455) 评论(0) 推荐(0)

SpringBoot 项目获取客户端IP地址
摘要:package tr.demo; import jakarta.servlet.http.HttpServletRequest; import org.springframework.web.bind.annotation.GetMapping; import org.springframework 阅读全文

posted @ 2024-11-19 09:52 yxchun 阅读(813) 评论(0) 推荐(0)

Jmeter进行IP欺骗,使用自定义 HTTP Header 设置 IP 地址
摘要:1、创建ips.txt文件,在里面写入局域网中没有被使用的ip地址; 添加线程组 2、在线程组里加入‘CSV数据文件设置’,填上ips.txt文件 3、在线程组里加入HTTP信息头管理器,加入请求头X-Forwarded-For, 值写‘CSV数据文件设置’中的‘变量名称’ 4、在线程组里加入HTT 阅读全文

posted @ 2024-11-19 09:41 yxchun 阅读(237) 评论(0) 推荐(0)

jmeter beanshell 获取当前运行环境的ip
摘要:InetAddress ia = InetAddress.getLocalHost(); String ip = ia.getHostAddress(); String name = ia.getHostName(); log.info(ip); log.info(name); 阅读全文

posted @ 2024-11-18 14:37 yxchun 阅读(38) 评论(0) 推荐(0)

Maven 项目构建jar包,并添加项目执行入口
摘要:1、在pom.xml中添加 <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>3.2.0</version> <executions> < 阅读全文

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

EXE4J 将jar包转为exe
摘要:如何添加构建jar包 : https://www.cnblogs.com/ychun/p/18528326 1、 2、 3、 4、 5、 6、 7、 输出: 参考:https://blog.csdn.net/lisainan66/article/details/136272116 阅读全文

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

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 阅读(35) 评论(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 阅读(188) 评论(0) 推荐(0)

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 阅读(935) 评论(0) 推荐(0)

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 阅读(57) 评论(0) 推荐(0)

将java程序打成exe工具,exe4j
摘要:下载链接: https://www.ej-technologies.com/exe4j/download 阅读全文

posted @ 2024-11-01 11:36 yxchun 阅读(29) 评论(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 阅读(31) 评论(0) 推荐(0)

 
博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3