Browse Source

feature: 升级springboot版本

Feick 2 years ago
parent
commit
d00435cc01
2 changed files with 5 additions and 2 deletions
  1. 1 1
      pom.xml
  2. 4 1
      src/main/java/com/yaoxiang/diagnosis/word/WordUtil.java

+ 1 - 1
pom.xml

@@ -18,7 +18,7 @@
     <parent>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-parent</artifactId>
-        <version>2.5.4</version>
+        <version>2.5.6</version>
         <relativePath/>
     </parent>
 

+ 4 - 1
src/main/java/com/yaoxiang/diagnosis/word/WordUtil.java

@@ -137,7 +137,10 @@ public class WordUtil {
 
         insert.forEach((k, v) -> {
             XWPFRun run = p.insertNewRun(k);
-            run.setText(v);
+            if (run != null) {
+                logger.error("can't insert run for formule,index={},value={}",k,v);
+                run.setText(v);
+            }
         });
         return true;