mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-18 17:05:55 +08:00
feat(支持springboot3): 支持springboot3框架
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
|
||||
<dependency>
|
||||
<groupId>com.dtflys.forest</groupId>
|
||||
<artifactId>forest-spring-boot-starter</artifactId>
|
||||
<artifactId>forest-spring-boot3-starter</artifactId>
|
||||
<version>${forest.version}</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import com.fastbee.http.client.Cn12306;
|
||||
import com.fastbee.http.client.Gitee;
|
||||
import com.fastbee.http.model.*;
|
||||
import com.dtflys.forest.http.ForestResponse;
|
||||
import javax.annotation.Resource;
|
||||
import jakarta.annotation.Resource;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package com.fastbee.http.controller;
|
||||
|
||||
import com.fastbee.http.client.TestInterceptorClient;
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import jakarta.annotation.Resource;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.fastbee.http.controller;
|
||||
|
||||
import com.fastbee.http.client.DownloadClient;
|
||||
import javax.annotation.Resource;
|
||||
import jakarta.annotation.Resource;
|
||||
|
||||
import org.apache.commons.io.FileUtils;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
|
||||
@@ -14,7 +14,7 @@ import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
import java.io.*;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.LinkedList;
|
||||
@@ -26,13 +26,13 @@ public class TestUploadController {
|
||||
|
||||
private final static Logger logger = LoggerFactory.getLogger(TestUploadController.class);
|
||||
|
||||
@javax.annotation.Resource
|
||||
@jakarta.annotation.Resource
|
||||
private FileService fileService;
|
||||
|
||||
@Value("${fastbee.profile}")
|
||||
private String uploadPath;
|
||||
|
||||
@javax.annotation.Resource
|
||||
@jakarta.annotation.Resource
|
||||
private UploadClient uploadClient;
|
||||
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import com.fastbee.http.model.Result;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import jakarta.annotation.Resource;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Slf4j
|
||||
|
||||
Reference in New Issue
Block a user