kongdeqiang
2026-02-16 be025707f3a8dff9268d3de5f03447127ac0dbc7
fix :修改文件上传路径
3个文件已修改
22 ■■■■■ 已修改文件
pom.xml 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/boying/util/FileUtil.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/application.yml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pom.xml
@@ -117,12 +117,9 @@
            <version>1.68</version>
        </dependency>
        <dependency>
            <groupId>com.ruim.ifsp</groupId>
            <artifactId>signature</artifactId>
            <groupId>com.example.local</groupId>
            <artifactId>ifsp-signature</artifactId>
            <version>1.1.0.6</version>
            <scope>system</scope>
            <!-- 路径对应项目中JAR的位置(比如放在resources/lib下,这里要调整实际路径) -->
            <systemPath>${project.basedir}/ifsp-signature-1.1.0.6.jar</systemPath>
        </dependency>
        <dependency>
            <groupId>org.eclipse.paho</groupId>
@@ -140,19 +137,14 @@
            <version>1.6.14</version>
        </dependency>
        <dependency>
            <groupId>com.led</groupId>
            <groupId>com.example.led</groupId>
            <artifactId>ledshow</artifactId>
            <version>1.0.0</version>
            <scope>system</scope>
            <!-- 路径对应项目中JAR的位置(比如放在resources/lib下,这里要调整实际路径) -->
            <systemPath>${project.basedir}/LedShow.j4n.jar</systemPath>
        </dependency>
        <dependency>
            <groupId>net.sf</groupId>
            <groupId>com.example.jni</groupId>
            <artifactId>jni4net</artifactId>
            <version>0.8.8.0</version>
            <scope>system</scope>
            <systemPath>${project.basedir}/jni4net.j-0.8.8.0.jar</systemPath>
        </dependency>
    </dependencies>
src/main/java/com/boying/util/FileUtil.java
@@ -88,6 +88,10 @@
            lastname=".pdf";
        }
        String filePath = "D:\\FFproject\\file\\"+format+"\\";
        File dir = new File(filePath);
        if (!dir.exists()) {
            dir.mkdirs(); // mkdirs() 可以创建多级目录
        }
        if(fileString == null){
            return null;
        }else {
src/main/resources/application.yml
@@ -44,7 +44,7 @@
logging:
  config: classpath:logback.xml
  level:
    com.boying: warn
    com.boying: debug
#项目配置