代碼程序: @PostMapping("selectById") @ResponseBody public Result selectById(@RequestBody int id) ...
代碼程序: @PostMapping("selectById") @ResponseBody public Result selectById(@RequestBody int id) ...
@Test public void contextLoads() { String password = "12345"; String hashed = ...
SpringSecurity核心功能:認證、授權、攻擊防護(防止偽造身份) 涉及的依賴如下: <dependency> <groupId>org.spri ...
今天看到有代碼中的Dao包中的類文件,寫的極其簡潔,甚至引起了開發工具InteliJ的報錯,然后程序還能穩健地跑起來。 import lombok.Data; @Data public cl ...
先看一下使用Swagger2構建Restful API效果圖 超級簡單的,只需要在pom 中引用如下jar包 <dependency> < ...
// // Source code recreated from a .class file by IntelliJ IDEA // (powered by Fernflower decompi ...
有時候,一個系統的功能,需要兩個或兩個以上的數據庫, 在Spring Boot 中要如何配置? How to? 新建一個類DataSourceConfig ...
當項目還不大的時候,打開瀏覽器的favicon是自帶的小葉子,如下圖 此時,我們只需要將我們想要的favicon命令為favicon.ico放置在resource下,重啟服務即可改變圖標 ...
最近用Spring boot開發一些測試平台和工具,用到頁面展示的部分, 選擇的是thymeleaf模版引擎。 頁面開發的7788快結束了,下面來總結下此過程中對thymeleaf的使用總結。 ...
在學習的時候常建新的項目,mark下商用的jar 自身使用的springboot項目中比較全的pom.xml 有阿里鏡像 有mysql和sqlserver驅動依賴的jar ...