@SpringBootApplication@ComponentScan(value = “com...
RELEASE swagger類配置:閘道器服務配置類:記住網管服務配置不要加@Configuration註解,否則會報錯,因為閘道器沒有引入springboot-web包...
context = applicationContext...
// Detect any custom bean name generation strategy supplied through the enclosing application context SingletonBe...
@Componentpublic class AllAwareInterface implements BeanNameAware, BeanClassLoaderAware, BeanFactoryAware, Envir...
//@ResponseBody//@Controller//RestController就是上面兩個的結合@RestControllerpublic class myboot {@RequestMapping(“/hello”)public...
core jackson-databind 2...
@ApiOperation(“上傳圖片介面”)@PostMapping(“/uploadFile”)public String upload(@RequestParam(“file”) MultipartFile file) {try {i...
/** * Keafmd * * @ClassName: HelloWorldMainApplication * @Description: 主程式 * @author: 牛哄哄的柯南 * @date: 2021-02-22 15:00 *...
xml檔案,將所需的docker, spring-boot-web等依賴庫新增進去,注意前面有些內容是根據專案的名字來決定的,如有需要可以直接複製標籤及以後的內容對你的檔案進行修改(注意spring-boot版本最好和你建立時設定版本一致)...
/** * @Author: zhuranwei * @Descripiton: * @Date: 2021/3/11 */@Configuration@EnableOAuth2Sso//開啟單點登陸public class Securit...
public class Test {public static void main(String[] args) {// 單一執行緒池,永遠會維護存在一條執行緒ExecutorService singleThreadPool = Exec...