From af0e0a110e7187bf008655f7510199a0c0b25ec4 Mon Sep 17 00:00:00 2001 From: Nymph2333 <498092988@qq.com> Date: 星期一, 10 四月 2023 14:27:40 +0800 Subject: [PATCH] newInstance() 已弃用,使用clazz.getDeclaredConstructor().newInstance() This method propagates any exception thrown by the nullary constructor, including a checked exception. Use of this method effectively bypasses the compile-time exception checking that would otherwise be performed by the compiler. The Constructor.newInstance method avoids this problem by wrapping any exception thrown by the constructor in a (checked) InvocationTargetException. The call clazz.newInstance() can be replaced by clazz.getDeclaredConstructor().newInstance() The latter sequence of calls is inferred to be able to throw the additional exception types InvocationTargetException and NoSuchMethodException. Both of these exception types are subclasses of ReflectiveOperationException. --- pom.xml | 124 ++++++++++++++++------------------------ 1 files changed, 50 insertions(+), 74 deletions(-) diff --git a/pom.xml b/pom.xml index 233dd47..60a1598 100644 --- a/pom.xml +++ b/pom.xml @@ -6,67 +6,66 @@ <groupId>com.ruoyi</groupId> <artifactId>ruoyi</artifactId> - <version>3.2.1</version> + <version>3.8.5</version> <name>ruoyi</name> <url>http://www.ruoyi.vip</url> <description>若依管理系统</description> <properties> - <ruoyi.version>3.2.1</ruoyi.version> + <ruoyi.version>3.8.5</ruoyi.version> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <java.version>1.8</java.version> <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version> - <druid.version>1.2.2</druid.version> - <bitwalker.version>1.19</bitwalker.version> - <swagger.version>2.9.2</swagger.version> - <kaptcha.version>2.3.2</kaptcha.version> - <pagehelper.boot.version>1.3.0</pagehelper.boot.version> - <fastjson.version>1.2.74</fastjson.version> - <oshi.version>5.3.6</oshi.version> - <jna.version>5.6.0</jna.version> - <commons.io.version>2.5</commons.io.version> - <commons.fileupload.version>1.3.3</commons.fileupload.version> - <poi.version>3.17</poi.version> - <velocity.version>1.7</velocity.version> + <druid.version>1.2.16</druid.version> + <bitwalker.version>1.21</bitwalker.version> + <swagger.version>3.0.0</swagger.version> + <kaptcha.version>2.3.3</kaptcha.version> + <pagehelper.boot.version>1.4.6</pagehelper.boot.version> + <fastjson.version>2.0.25</fastjson.version> + <oshi.version>6.4.0</oshi.version> + <commons.io.version>2.11.0</commons.io.version> + <commons.collections.version>3.2.2</commons.collections.version> + <poi.version>4.1.2</poi.version> + <velocity.version>2.3</velocity.version> <jwt.version>0.9.1</jwt.version> </properties> <!-- 依赖声明 --> <dependencyManagement> <dependencies> - + <!-- SpringBoot的依赖配置--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-dependencies</artifactId> - <version>2.1.18.RELEASE</version> + <version>2.5.14</version> <type>pom</type> <scope>import</scope> </dependency> - - <!--阿里数据库连接池 --> + + <!-- 阿里数据库连接池 --> <dependency> <groupId>com.alibaba</groupId> <artifactId>druid-spring-boot-starter</artifactId> <version>${druid.version}</version> </dependency> - + <!-- 解析客户端操作系统、浏览器等 --> <dependency> <groupId>eu.bitwalker</groupId> <artifactId>UserAgentUtils</artifactId> <version>${bitwalker.version}</version> </dependency> - + <!-- pagehelper 分页插件 --> <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> <version>${pagehelper.boot.version}</version> </dependency> - + <!-- 获取系统信息 --> <dependency> <groupId>com.github.oshi</groupId> @@ -74,119 +73,96 @@ <version>${oshi.version}</version> </dependency> - <dependency> - <groupId>net.java.dev.jna</groupId> - <artifactId>jna</artifactId> - <version>${jna.version}</version> - </dependency> - - <dependency> - <groupId>net.java.dev.jna</groupId> - <artifactId>jna-platform</artifactId> - <version>${jna.version}</version> - </dependency> - - <!-- swagger2--> + <!-- Swagger3依赖 --> <dependency> <groupId>io.springfox</groupId> - <artifactId>springfox-swagger2</artifactId> + <artifactId>springfox-boot-starter</artifactId> <version>${swagger.version}</version> <exclusions> - <exclusion> - <groupId>io.swagger</groupId> - <artifactId>swagger-annotations</artifactId> - </exclusion> <exclusion> <groupId>io.swagger</groupId> <artifactId>swagger-models</artifactId> </exclusion> </exclusions> </dependency> - - <!-- swagger2-UI--> - <dependency> - <groupId>io.springfox</groupId> - <artifactId>springfox-swagger-ui</artifactId> - <version>${swagger.version}</version> - </dependency> - - <!--io常用工具类 --> + + <!-- io常用工具类 --> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>${commons.io.version}</version> </dependency> - - <!--文件上传工具类 --> - <dependency> - <groupId>commons-fileupload</groupId> - <artifactId>commons-fileupload</artifactId> - <version>${commons.fileupload.version}</version> - </dependency> - + <!-- excel工具 --> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>${poi.version}</version> </dependency> - - <!--velocity代码生成使用模板 --> + + <!-- velocity代码生成使用模板 --> <dependency> <groupId>org.apache.velocity</groupId> - <artifactId>velocity</artifactId> + <artifactId>velocity-engine-core</artifactId> <version>${velocity.version}</version> </dependency> - + + <!-- collections工具类 --> + <dependency> + <groupId>commons-collections</groupId> + <artifactId>commons-collections</artifactId> + <version>${commons.collections.version}</version> + </dependency> + <!-- 阿里JSON解析器 --> <dependency> - <groupId>com.alibaba</groupId> - <artifactId>fastjson</artifactId> + <groupId>com.alibaba.fastjson2</groupId> + <artifactId>fastjson2</artifactId> <version>${fastjson.version}</version> </dependency> - - <!--Token生成与解析--> + + <!-- Token生成与解析--> <dependency> <groupId>io.jsonwebtoken</groupId> <artifactId>jjwt</artifactId> <version>${jwt.version}</version> </dependency> - - <!--验证码 --> + + <!-- 验证码 --> <dependency> - <groupId>com.github.penggle</groupId> + <groupId>pro.fessional</groupId> <artifactId>kaptcha</artifactId> <version>${kaptcha.version}</version> </dependency> - + <!-- 定时任务--> <dependency> <groupId>com.ruoyi</groupId> <artifactId>ruoyi-quartz</artifactId> <version>${ruoyi.version}</version> </dependency> - + <!-- 代码生成--> <dependency> <groupId>com.ruoyi</groupId> <artifactId>ruoyi-generator</artifactId> <version>${ruoyi.version}</version> </dependency> - + <!-- 核心模块--> <dependency> <groupId>com.ruoyi</groupId> <artifactId>ruoyi-framework</artifactId> <version>${ruoyi.version}</version> </dependency> - + <!-- 系统模块--> <dependency> <groupId>com.ruoyi</groupId> <artifactId>ruoyi-system</artifactId> <version>${ruoyi.version}</version> </dependency> - + <!-- 通用工具--> <dependency> <groupId>com.ruoyi</groupId> @@ -231,7 +207,7 @@ <repository> <id>public</id> <name>aliyun nexus</name> - <url>http://maven.aliyun.com/nexus/content/groups/public/</url> + <url>https://maven.aliyun.com/repository/public</url> <releases> <enabled>true</enabled> </releases> @@ -242,7 +218,7 @@ <pluginRepository> <id>public</id> <name>aliyun nexus</name> - <url>http://maven.aliyun.com/nexus/content/groups/public/</url> + <url>https://maven.aliyun.com/repository/public</url> <releases> <enabled>true</enabled> </releases> -- Gitblit v1.9.2