作者 RuoYi

升级mybatis到最新版3.5.6 阻止远程代码执行漏洞

正在显示 1 个修改的文件 包含 28 行增加20 行删除
@@ -22,6 +22,7 @@ @@ -22,6 +22,7 @@
22 <bitwalker.version>1.21</bitwalker.version> 22 <bitwalker.version>1.21</bitwalker.version>
23 <swagger.version>2.9.2</swagger.version> 23 <swagger.version>2.9.2</swagger.version>
24 <kaptcha.version>2.3.2</kaptcha.version> 24 <kaptcha.version>2.3.2</kaptcha.version>
  25 + <mybatis-spring-boot.version>2.1.4</mybatis-spring-boot.version>
25 <pagehelper.boot.version>1.3.0</pagehelper.boot.version> 26 <pagehelper.boot.version>1.3.0</pagehelper.boot.version>
26 <fastjson.version>1.2.75</fastjson.version> 27 <fastjson.version>1.2.75</fastjson.version>
27 <oshi.version>5.6.0</oshi.version> 28 <oshi.version>5.6.0</oshi.version>
@@ -37,7 +38,7 @@ @@ -37,7 +38,7 @@
37 <!-- 依赖声明 --> 38 <!-- 依赖声明 -->
38 <dependencyManagement> 39 <dependencyManagement>
39 <dependencies> 40 <dependencies>
40 - 41 +
41 <!-- SpringBoot的依赖配置--> 42 <!-- SpringBoot的依赖配置-->
42 <dependency> 43 <dependency>
43 <groupId>org.springframework.boot</groupId> 44 <groupId>org.springframework.boot</groupId>
@@ -46,28 +47,35 @@ @@ -46,28 +47,35 @@
46 <type>pom</type> 47 <type>pom</type>
47 <scope>import</scope> 48 <scope>import</scope>
48 </dependency> 49 </dependency>
49 - 50 +
50 <!--阿里数据库连接池 --> 51 <!--阿里数据库连接池 -->
51 <dependency> 52 <dependency>
52 <groupId>com.alibaba</groupId> 53 <groupId>com.alibaba</groupId>
53 <artifactId>druid-spring-boot-starter</artifactId> 54 <artifactId>druid-spring-boot-starter</artifactId>
54 <version>${druid.version}</version> 55 <version>${druid.version}</version>
55 </dependency> 56 </dependency>
56 - 57 +
57 <!-- 解析客户端操作系统、浏览器等 --> 58 <!-- 解析客户端操作系统、浏览器等 -->
58 <dependency> 59 <dependency>
59 <groupId>eu.bitwalker</groupId> 60 <groupId>eu.bitwalker</groupId>
60 <artifactId>UserAgentUtils</artifactId> 61 <artifactId>UserAgentUtils</artifactId>
61 <version>${bitwalker.version}</version> 62 <version>${bitwalker.version}</version>
62 </dependency> 63 </dependency>
63 - 64 +
  65 + <!-- SpringBoot集成mybatis框架 -->
  66 + <dependency>
  67 + <groupId>org.mybatis.spring.boot</groupId>
  68 + <artifactId>mybatis-spring-boot-starter</artifactId>
  69 + <version>${mybatis-spring-boot.version}</version>
  70 + </dependency>
  71 +
64 <!-- pagehelper 分页插件 --> 72 <!-- pagehelper 分页插件 -->
65 <dependency> 73 <dependency>
66 <groupId>com.github.pagehelper</groupId> 74 <groupId>com.github.pagehelper</groupId>
67 <artifactId>pagehelper-spring-boot-starter</artifactId> 75 <artifactId>pagehelper-spring-boot-starter</artifactId>
68 <version>${pagehelper.boot.version}</version> 76 <version>${pagehelper.boot.version}</version>
69 </dependency> 77 </dependency>
70 - 78 +
71 <!-- 获取系统信息 --> 79 <!-- 获取系统信息 -->
72 <dependency> 80 <dependency>
73 <groupId>com.github.oshi</groupId> 81 <groupId>com.github.oshi</groupId>
@@ -86,7 +94,7 @@ @@ -86,7 +94,7 @@
86 <artifactId>jna-platform</artifactId> 94 <artifactId>jna-platform</artifactId>
87 <version>${jna.version}</version> 95 <version>${jna.version}</version>
88 </dependency> 96 </dependency>
89 - 97 +
90 <!-- swagger2--> 98 <!-- swagger2-->
91 <dependency> 99 <dependency>
92 <groupId>io.springfox</groupId> 100 <groupId>io.springfox</groupId>
@@ -103,35 +111,35 @@ @@ -103,35 +111,35 @@
103 </exclusion> 111 </exclusion>
104 </exclusions> 112 </exclusions>
105 </dependency> 113 </dependency>
106 - 114 +
107 <!-- swagger2-UI--> 115 <!-- swagger2-UI-->
108 <dependency> 116 <dependency>
109 <groupId>io.springfox</groupId> 117 <groupId>io.springfox</groupId>
110 <artifactId>springfox-swagger-ui</artifactId> 118 <artifactId>springfox-swagger-ui</artifactId>
111 <version>${swagger.version}</version> 119 <version>${swagger.version}</version>
112 </dependency> 120 </dependency>
113 - 121 +
114 <!--io常用工具类 --> 122 <!--io常用工具类 -->
115 <dependency> 123 <dependency>
116 <groupId>commons-io</groupId> 124 <groupId>commons-io</groupId>
117 <artifactId>commons-io</artifactId> 125 <artifactId>commons-io</artifactId>
118 <version>${commons.io.version}</version> 126 <version>${commons.io.version}</version>
119 </dependency> 127 </dependency>
120 - 128 +
121 <!--文件上传工具类 --> 129 <!--文件上传工具类 -->
122 <dependency> 130 <dependency>
123 <groupId>commons-fileupload</groupId> 131 <groupId>commons-fileupload</groupId>
124 <artifactId>commons-fileupload</artifactId> 132 <artifactId>commons-fileupload</artifactId>
125 <version>${commons.fileupload.version}</version> 133 <version>${commons.fileupload.version}</version>
126 </dependency> 134 </dependency>
127 - 135 +
128 <!-- excel工具 --> 136 <!-- excel工具 -->
129 <dependency> 137 <dependency>
130 <groupId>org.apache.poi</groupId> 138 <groupId>org.apache.poi</groupId>
131 <artifactId>poi-ooxml</artifactId> 139 <artifactId>poi-ooxml</artifactId>
132 <version>${poi.version}</version> 140 <version>${poi.version}</version>
133 </dependency> 141 </dependency>
134 - 142 +
135 <!--velocity代码生成使用模板 --> 143 <!--velocity代码生成使用模板 -->
136 <dependency> 144 <dependency>
137 <groupId>org.apache.velocity</groupId> 145 <groupId>org.apache.velocity</groupId>
@@ -144,63 +152,63 @@ @@ -144,63 +152,63 @@
144 </exclusion> 152 </exclusion>
145 </exclusions> 153 </exclusions>
146 </dependency> 154 </dependency>
147 - 155 +
148 <!-- collections工具类 --> 156 <!-- collections工具类 -->
149 <dependency> 157 <dependency>
150 <groupId>commons-collections</groupId> 158 <groupId>commons-collections</groupId>
151 <artifactId>commons-collections</artifactId> 159 <artifactId>commons-collections</artifactId>
152 <version>${commons.collections.version}</version> 160 <version>${commons.collections.version}</version>
153 </dependency> 161 </dependency>
154 - 162 +
155 <!-- 阿里JSON解析器 --> 163 <!-- 阿里JSON解析器 -->
156 <dependency> 164 <dependency>
157 <groupId>com.alibaba</groupId> 165 <groupId>com.alibaba</groupId>
158 <artifactId>fastjson</artifactId> 166 <artifactId>fastjson</artifactId>
159 <version>${fastjson.version}</version> 167 <version>${fastjson.version}</version>
160 </dependency> 168 </dependency>
161 - 169 +
162 <!--Token生成与解析--> 170 <!--Token生成与解析-->
163 <dependency> 171 <dependency>
164 <groupId>io.jsonwebtoken</groupId> 172 <groupId>io.jsonwebtoken</groupId>
165 <artifactId>jjwt</artifactId> 173 <artifactId>jjwt</artifactId>
166 <version>${jwt.version}</version> 174 <version>${jwt.version}</version>
167 </dependency> 175 </dependency>
168 - 176 +
169 <!--验证码 --> 177 <!--验证码 -->
170 <dependency> 178 <dependency>
171 <groupId>com.github.penggle</groupId> 179 <groupId>com.github.penggle</groupId>
172 <artifactId>kaptcha</artifactId> 180 <artifactId>kaptcha</artifactId>
173 <version>${kaptcha.version}</version> 181 <version>${kaptcha.version}</version>
174 </dependency> 182 </dependency>
175 - 183 +
176 <!-- 定时任务--> 184 <!-- 定时任务-->
177 <dependency> 185 <dependency>
178 <groupId>com.ruoyi</groupId> 186 <groupId>com.ruoyi</groupId>
179 <artifactId>ruoyi-quartz</artifactId> 187 <artifactId>ruoyi-quartz</artifactId>
180 <version>${ruoyi.version}</version> 188 <version>${ruoyi.version}</version>
181 </dependency> 189 </dependency>
182 - 190 +
183 <!-- 代码生成--> 191 <!-- 代码生成-->
184 <dependency> 192 <dependency>
185 <groupId>com.ruoyi</groupId> 193 <groupId>com.ruoyi</groupId>
186 <artifactId>ruoyi-generator</artifactId> 194 <artifactId>ruoyi-generator</artifactId>
187 <version>${ruoyi.version}</version> 195 <version>${ruoyi.version}</version>
188 </dependency> 196 </dependency>
189 - 197 +
190 <!-- 核心模块--> 198 <!-- 核心模块-->
191 <dependency> 199 <dependency>
192 <groupId>com.ruoyi</groupId> 200 <groupId>com.ruoyi</groupId>
193 <artifactId>ruoyi-framework</artifactId> 201 <artifactId>ruoyi-framework</artifactId>
194 <version>${ruoyi.version}</version> 202 <version>${ruoyi.version}</version>
195 </dependency> 203 </dependency>
196 - 204 +
197 <!-- 系统模块--> 205 <!-- 系统模块-->
198 <dependency> 206 <dependency>
199 <groupId>com.ruoyi</groupId> 207 <groupId>com.ruoyi</groupId>
200 <artifactId>ruoyi-system</artifactId> 208 <artifactId>ruoyi-system</artifactId>
201 <version>${ruoyi.version}</version> 209 <version>${ruoyi.version}</version>
202 </dependency> 210 </dependency>
203 - 211 +
204 <!-- 通用工具--> 212 <!-- 通用工具-->
205 <dependency> 213 <dependency>
206 <groupId>com.ruoyi</groupId> 214 <groupId>com.ruoyi</groupId>