Prechádzať zdrojové kódy

:recycle: Refactoring code.fix #164,optimize jackson dependencies

萌萌哒Sakura酱 6 rokov pred
rodič
commit
a75a0d90f9

+ 0 - 10
pigx-common/pigx-common-bom/pom.xml

@@ -17,7 +17,6 @@
 
 	<properties>
 		<pigx.version>2.6.0</pigx.version>
-		<jackson.modules>2.9.6</jackson.modules>
 		<mybatis-plus.version>3.1.0</mybatis-plus.version>
 		<mysql.connector.version>8.0.13</mysql.connector.version>
 	</properties>
@@ -75,15 +74,6 @@
 				<artifactId>pigx-upms-api</artifactId>
 				<version>${pigx.version}</version>
 			</dependency>
-
-			<!--jackson模块-->
-			<dependency>
-				<groupId>com.fasterxml.jackson.module</groupId>
-				<artifactId>jackson-modules-java8</artifactId>
-				<version>${jackson.modules}</version>
-				<type>pom</type>
-				<scope>import</scope>
-			</dependency>
 			<!--mybatis plus extension,包含了mybatis plus core-->
 			<dependency>
 				<groupId>com.baomidou</groupId>

+ 3 - 11
pigx-common/pigx-common-core/pom.xml

@@ -59,18 +59,10 @@
 			<groupId>org.springframework.boot</groupId>
 			<artifactId>spring-boot-starter-validation</artifactId>
 		</dependency>
-		<!--jackson模块-->
+		<!--json模块-->
 		<dependency>
-			<groupId>com.fasterxml.jackson.module</groupId>
-			<artifactId>jackson-module-parameter-names</artifactId>
-		</dependency>
-		<dependency>
-			<groupId>com.fasterxml.jackson.datatype</groupId>
-			<artifactId>jackson-datatype-jdk8</artifactId>
-		</dependency>
-		<dependency>
-			<groupId>com.fasterxml.jackson.datatype</groupId>
-			<artifactId>jackson-datatype-jsr310</artifactId>
+			<groupId>org.springframework.boot</groupId>
+			<artifactId>spring-boot-starter-json</artifactId>
 		</dependency>
 		<!--TTL-->
 		<dependency>

+ 0 - 49
pigx-common/pigx-common-core/src/main/java/com/pig4cloud/pigx/common/core/exception/PigDeniedException.java

@@ -1,49 +0,0 @@
-/*
- *
- *      Copyright (c) 2018-2025, lengleng All rights reserved.
- *
- *  Redistribution and use in source and binary forms, with or without
- *  modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice,
- *  this list of conditions and the following disclaimer.
- *  Redistributions in binary form must reproduce the above copyright
- *  notice, this list of conditions and the following disclaimer in the
- *  documentation and/or other materials provided with the distribution.
- *  Neither the name of the pig4cloud.com developer nor the names of its
- *  contributors may be used to endorse or promote products derived from
- *  this software without specific prior written permission.
- *  Author: lengleng (wangiegie@gmail.com)
- *
- */
-
-package com.pig4cloud.pigx.common.core.exception;
-
-import lombok.NoArgsConstructor;
-
-/**
- * @author lengleng
- * @date 2018年06月22日16:22:03
- * 403 授权拒绝
- */
-@NoArgsConstructor
-public class PigDeniedException extends RuntimeException {
-	private static final long serialVersionUID = 1L;
-
-	public PigDeniedException(String message) {
-		super(message);
-	}
-
-	public PigDeniedException(Throwable cause) {
-		super(cause);
-	}
-
-	public PigDeniedException(String message, Throwable cause) {
-		super(message, cause);
-	}
-
-	public PigDeniedException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
-		super(message, cause, enableSuppression, writableStackTrace);
-	}
-
-}

+ 0 - 48
pigx-common/pigx-common-core/src/main/java/com/pig4cloud/pigx/common/core/exception/UnloginException.java

@@ -1,48 +0,0 @@
-/*
- *
- *      Copyright (c) 2018-2025, lengleng All rights reserved.
- *
- *  Redistribution and use in source and binary forms, with or without
- *  modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice,
- *  this list of conditions and the following disclaimer.
- *  Redistributions in binary form must reproduce the above copyright
- *  notice, this list of conditions and the following disclaimer in the
- *  documentation and/or other materials provided with the distribution.
- *  Neither the name of the pig4cloud.com developer nor the names of its
- *  contributors may be used to endorse or promote products derived from
- *  this software without specific prior written permission.
- *  Author: lengleng (wangiegie@gmail.com)
- *
- */
-
-package com.pig4cloud.pigx.common.core.exception;
-
-import lombok.NoArgsConstructor;
-
-/**
- * @author lengleng
- * @date 2018年06月22日16:22:10
- */
-@NoArgsConstructor
-public class UnloginException extends RuntimeException {
-	private static final long serialVersionUID = 1L;
-
-	public UnloginException(String message) {
-		super(message);
-	}
-
-	public UnloginException(Throwable cause) {
-		super(cause);
-	}
-
-	public UnloginException(String message, Throwable cause) {
-		super(message, cause);
-	}
-
-	public UnloginException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
-		super(message, cause, enableSuppression, writableStackTrace);
-	}
-
-}