File tree Expand file tree Collapse file tree 4 files changed +15
-12
lines changed
APIJSON-Java-Server/APIJSONDemo-Presto
src/main/java/apijson/demo Expand file tree Collapse file tree 4 files changed +15
-12
lines changed Original file line number Diff line number Diff line change 55
66 <groupId >apijson.demo</groupId >
77 <artifactId >apijson-demo</artifactId >
8- <version >7.0.3 </version >
8+ <version >7.1.5 </version >
99
1010 <name >APIJSONDemo-Presto</name >
1111 <description >Demo project for testing APIJSON server based on SpringBoot</description >
1212
1313 <properties >
1414 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
1515 <project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
16- <java .version>1.8</java .version>
16+ <java .version>17</java .version>
17+ <maven .compiler.encoding>UTF-8</maven .compiler.encoding>
18+ <maven .compiler.source>17</maven .compiler.source>
19+ <maven .compiler.target>17</maven .compiler.target>
1720 </properties >
1821
1922 <dependencies >
2023 <!-- 需要的 APIJSON 相关依赖 -->
2124 <dependency >
2225 <groupId >com.github.Tencent</groupId >
2326 <artifactId >APIJSON</artifactId >
24- <version >7.0.3 </version >
27+ <version >7.1.0 </version >
2528 </dependency >
2629 <dependency >
2730 <groupId >com.github.APIJSON</groupId >
2831 <artifactId >apijson-framework</artifactId >
29- <version >7.0.3 </version >
32+ <version >7.1.5 </version >
3033 </dependency >
3134
3235 <!-- 需要用的数据库 JDBC 驱动 -->
7174 <artifactId >maven-compiler-plugin</artifactId >
7275 <version >3.8.1</version >
7376 <configuration >
74- <source >1.8 </source >
75- <target >1.8 </target >
77+ <source >17 </source >
78+ <target >17 </target >
7679 </configuration >
7780 </plugin >
7881 </plugins >
Original file line number Diff line number Diff line change 2626import org .springframework .web .servlet .config .annotation .WebMvcConfigurer ;
2727
2828import apijson .Log ;
29- import apijson .framework .APIJSONApplication ;
30- import apijson .framework .APIJSONCreator ;
29+ import apijson .framework .javax . APIJSONApplication ;
30+ import apijson .framework .javax . APIJSONCreator ;
3131import apijson .orm .SQLConfig ;
3232
3333
@@ -60,7 +60,7 @@ public void customize(ConfigurableServletWebServerFactory server) {
6060
6161 // 支持 APIAuto 中 JavaScript 代码跨域请求
6262 @ Bean
63- public WebMvcConfigurer corsConfigurer () {
63+ public WebMvcConfigurer corsConfig () {
6464 return new WebMvcConfigurer () {
6565 @ Override
6666 public void addCorsMappings (CorsRegistry registry ) {
@@ -77,7 +77,7 @@ public void addCorsMappings(CorsRegistry registry) {
7777 // 使用本项目的自定义处理类
7878 APIJSONApplication .DEFAULT_APIJSON_CREATOR = new APIJSONCreator <Long >() {
7979 @ Override
80- public SQLConfig createSQLConfig () {
80+ public SQLConfig < Long > createSQLConfig () {
8181 return new DemoSQLConfig ();
8282 }
8383 };
Original file line number Diff line number Diff line change 2929
3030import apijson .RequestMethod ;
3131import apijson .StringUtil ;
32- import apijson .framework .APIJSONController ;
32+ import apijson .framework .javax . APIJSONController ;
3333import apijson .orm .Parser ;
3434
3535
Original file line number Diff line number Diff line change 1616
1717import com .alibaba .fastjson .annotation .JSONField ;
1818
19- import apijson .framework .APIJSONSQLConfig ;
19+ import apijson .framework .javax . APIJSONSQLConfig ;
2020
2121
2222/**SQL 配置
You can’t perform that action at this time.
0 commit comments