09 2023 档案
摘要:一、手动添加jar包到Maven仓库 (1)在pom.xml加入依赖,例如: (2)把包拷贝到到maven home下,然后进入bin目录下,执行 mvn install:install-file -Dfile=C:\Users\admin\Desktop\1.0-SNAPSHOT\1.0-SNAP
阅读全文
摘要:1.简单使用 一、配置类 @Configuration @EnableAsync public class SpringAsyncConfig { @Bean("taskExecutor") public Executor asyncServiceExecutor() { ThreadPoolTas
阅读全文
摘要:开发一个word替换功能时,因替换其中的内容功能需要 word 模版,就把 word_replace_tpl.docx 模版文件放到 resources 下 在开发环境中通过下面方法能读取word_replace_tpl.docx文件,但是打成jar包在 linux下运行后无法找到文件了 File
阅读全文
摘要:1、工具 jdk自带的工具位置: 找到窗口->应用程序 2、问题和方式 在SpringBoot项目中,调优主要通过配置文件和配置JVM的参数的方式进行。 2.1 springboot修改配置文件调优 关于修改配置文件application.properties。 https://docs.sprin
阅读全文