会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
joeyin
风来过,也留下了痕迹。
博客园
首页
新随笔
联系
订阅
管理
2025年12月25日
nginx location path记录
摘要: 对于请求 192.168.1.1:80/static/a.html: Path1(location路径): /static 或 /static/(取决于配置) Path2(请求路径): a.html 如果proxy_pass以斜杠(/)结尾: Nginx认为proxy_pass指定的是一个目录。 转
阅读全文
posted @ 2025-12-25 17:02 Joeyin
阅读(2)
评论(0)
推荐(0)
2025年12月18日
SpringBoot 单测
摘要: 在不启动SpringBoot容器时 注入被测试类使用@InjectMocks 模拟被测试类依赖使用@Mock 部分模拟被测试类依赖类方法使用@Spy 启动SpringBoot容器时 注入被测试类使用@Autowired 模拟被测试类依赖使用@MockBean 部分模拟被测试类依赖类方法使用@SpyB
阅读全文
posted @ 2025-12-18 19:29 Joeyin
阅读(4)
评论(0)
推荐(0)
2025年12月11日
pytest 测试 async for以及 async 方法
摘要: 参考:https://thenonfunctionaldev.com/tutorial-async-tdd-with-pytest-asyncio/ https://pytest-with-eric.com/pytest-advanced/pytest-asyncio/ 测试 async for r
阅读全文
posted @ 2025-12-11 15:23 Joeyin
阅读(1)
评论(0)
推荐(0)
2022年8月22日
由LOG_PATH_IS_UNDEFINED/LOG_HOME_IS_UNDEFINED引发的问题
摘要: 使用 SpringBoot + LogBack 的项目在程序启动之后总是在项目根目录产生一个 LOG_PATH_IS_UNDEFINED 的文件夹,原因是 Spring 容器在 Logback 初始化之后设置 LOG_PATH ,所以在 logback-spring.xml 找不到 LOG_PATH
阅读全文
posted @ 2022-08-22 21:25 Joeyin
阅读(2069)
评论(1)
推荐(0)
公告