张涛 1 år sedan
förälder
incheckning
4d99a54c2b

+ 20
- 15
pom.xml Visa fil

@@ -37,12 +37,17 @@
37 37
             <artifactId>lombok</artifactId>
38 38
             <optional>true</optional>
39 39
         </dependency>
40
+<!--        <dependency>-->
41
+<!--            <groupId>org.springframework.boot</groupId>-->
42
+<!--            <artifactId>spring-boot-starter-test</artifactId>-->
43
+<!--            <scope>test</scope>-->
44
+<!--        </dependency>-->
40 45
         <dependency>
41 46
             <groupId>org.springframework.boot</groupId>
42
-            <artifactId>spring-boot-starter-test</artifactId>
43
-            <scope>test</scope>
47
+            <artifactId>spring-boot-starter-data-jpa</artifactId>
44 48
         </dependency>
45 49
 
50
+
46 51
         <!--fastjson start-->
47 52
         <dependency>
48 53
             <groupId>com.alibaba</groupId>
@@ -86,12 +91,12 @@
86 91
             <version>3.3.1</version>
87 92
         </dependency>
88 93
 
89
-<!--        &lt;!&ndash;mybatis-plus start&ndash;&gt;-->
90
-<!--        <dependency>-->
91
-<!--            <groupId>com.baomidou</groupId>-->
92
-<!--            <artifactId>mybatis-plus-boot-starter</artifactId>-->
93
-<!--            <version>3.5.1</version>-->
94
-<!--        </dependency>-->
94
+        <!--mybatis-plus start-->
95
+        <dependency>
96
+            <groupId>com.baomidou</groupId>
97
+            <artifactId>mybatis-plus-boot-starter</artifactId>
98
+            <version>3.5.1</version>
99
+        </dependency>
95 100
 <!--        &lt;!&ndash;mybatis-plus end&ndash;&gt;-->
96 101
 
97 102
         <!--weixin-h5 start-->
@@ -103,13 +108,13 @@
103 108
         <!--weixin-h5 end-->
104 109
 
105 110
 
106
-<!--        &lt;!&ndash;weixin-miniapp start&ndash;&gt;-->
107
-<!--        <dependency>-->
108
-<!--            <groupId>com.github.binarywang</groupId>-->
109
-<!--            <artifactId>weixin-java-miniapp</artifactId>-->
110
-<!--            <version>4.4.0</version>-->
111
-<!--        </dependency>-->
112
-<!--        &lt;!&ndash;weixin-miniapp end&ndash;&gt;-->
111
+        <!--weixin-miniapp start-->
112
+        <dependency>
113
+            <groupId>com.github.binarywang</groupId>
114
+            <artifactId>weixin-java-miniapp</artifactId>
115
+            <version>4.4.0</version>
116
+        </dependency>
117
+        <!--weixin-miniapp end-->
113 118
 
114 119
         <!--swagger start-->
115 120
         <dependency>

+ 1
- 1
src/main/java/com/example/civilizedcity/CivilizedCityApplication.java Visa fil

@@ -6,7 +6,7 @@ import org.springframework.scheduling.annotation.EnableAsync;
6 6
 import org.springframework.transaction.annotation.EnableTransactionManagement;
7 7
 
8 8
 @EnableAsync
9
-@EnableTransactionManagement(proxyTargetClass = true)
9
+@EnableTransactionManagement
10 10
 @SpringBootApplication
11 11
 public class CivilizedCityApplication {
12 12
 

+ 1
- 1
src/main/java/com/example/civilizedcity/controller/CommController.java Visa fil

@@ -61,7 +61,7 @@ public class CommController extends BaseController {
61 61
         }
62 62
 
63 63
         //
64
-        File upFile = new File(String.format("%s/%s", getUploadPath(), newFileName));
64
+            File upFile = new File(String.format("%s/%s", getUploadPath(), newFileName));
65 65
         multipartFile.transferTo(upFile);
66 66
 
67 67
         String url = String.format("%s/%s", uploadPrefix, newFileName);

+ 1
- 1
src/main/resources/application-dev.yml Visa fil

@@ -23,7 +23,7 @@ spring:
23 23
 yz:
24 24
   upload:
25 25
     path: E:\work\public-upload
26
-    prefix: http://127.0.0.1:8000
26
+    prefix: http://192.168.89.13:7777
27 27
   excel:
28 28
     tpl:
29 29
       check: E:\work\Java+web\07霍山\service\src\main\resources\check_tpl.xlsx