Skip to content

Commit

Permalink
Merge pull request #26 from APIJSON/springboot3
Browse files Browse the repository at this point in the history
merge from springboot3
  • Loading branch information
TommyLemon authored May 12, 2024
2 parents 9fd3127 + 1330ae6 commit aa0b5b8
Show file tree
Hide file tree
Showing 8 changed files with 62 additions and 37 deletions.
48 changes: 33 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,37 @@
# Compiled class file
*.class
HELP.md
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/

# Log file
*.log

# BlueJ files
*.ctxt

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
/target/
bin
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

### VS Code ###
.vscode/
6 changes: 6 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
jdk:
- openjdk17

before_install:
- sdk install java 17.0.6-open
- sdk use java 17.0.6-open
26 changes: 15 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>apijson.framework</groupId>
<artifactId>apijson-framework</artifactId>
<version>6.3.0</version>
<version>6.4.3-springboot-3</version>
<packaging>jar</packaging>

<name>APIJSONFramework</name>
Expand All @@ -14,14 +14,18 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<java.version>17</java.version>
<maven.compiler.encoding>UTF-8</maven.compiler.encoding>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
</properties>

<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>4.0.1</version>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<version>6.0.0</version>
<scope>provided</scope>
</dependency>

<dependency>
Expand All @@ -34,12 +38,12 @@
<dependency>
<groupId>com.github.Tencent</groupId>
<artifactId>APIJSON</artifactId>
<version>6.3.0</version>
<version>6.4.3-springboot3</version>
</dependency>
<dependency>
<groupId>com.github.APIJSON</groupId>
<artifactId>apijson-column</artifactId>
<version>1.8.0</version>
<version>1.9.3-springboot3</version>
</dependency>

<!-- 数据库 JDBC 驱动 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< -->
Expand All @@ -51,7 +55,7 @@
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.3.8</version>
<version>42.7.2</version>
</dependency>
<!-- 数据库 JDBC 驱动 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> -->

Expand All @@ -76,10 +80,10 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<version>3.12.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<source>17</source>
<target>17</target>
</configuration>
</plugin>
</plugins>
Expand Down
11 changes: 4 additions & 7 deletions src/main/java/apijson/framework/APIJSONController.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
import java.rmi.ServerException;
import java.util.Map;

import javax.servlet.AsyncContext;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import jakarta.servlet.AsyncContext;
import jakarta.servlet.ServletResponse;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpSession;

import com.alibaba.fastjson.JSONObject;

Expand Down Expand Up @@ -110,8 +110,6 @@ public String parseByTag(RequestMethod method, String tag, Map<String, String> p

/**增删改查统一入口,这个一个方法可替代以下 7 个方法,牺牲一点路由解析性能来提升一些开发效率
* @param method
* @param tag
* @param params
* @param request
* @param session
* @return
Expand Down Expand Up @@ -316,7 +314,6 @@ public String deleteByTag(String tag, Map<String, String> params, String request


/**重新加载配置
* @param request
* @return
* @see
* <pre>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/apijson/framework/APIJSONFunctionParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpSession;
import jakarta.servlet.http.HttpSession;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/apijson/framework/APIJSONObjectParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import java.util.List;

import javax.servlet.http.HttpSession;
import jakarta.servlet.http.HttpSession;

import apijson.orm.*;
import com.alibaba.fastjson.JSONObject;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/apijson/framework/APIJSONParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import java.util.Map;
import java.util.Set;

import javax.servlet.http.HttpSession;
import jakarta.servlet.http.HttpSession;

import com.alibaba.fastjson.JSONObject;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/apijson/framework/APIJSONVerifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import java.rmi.ServerException;
import java.util.*;

import javax.servlet.http.HttpSession;
import jakarta.servlet.http.HttpSession;

import apijson.column.ColumnUtil;
import apijson.orm.*;
Expand Down

0 comments on commit aa0b5b8

Please sign in to comment.