spring aop 自動列印介面的出入參日誌,更專注於業務邏輯
@Slf4j//下面兩個註解是必須的,少一個都不行哦@Aspect@Configurationpublic class WebLog { //標記切入點,為指定包下的所有類的所有public方法 @Pointcut(value ...
@Slf4j//下面兩個註解是必須的,少一個都不行哦@Aspect@Configurationpublic class WebLog { //標記切入點,為指定包下的所有類的所有public方法 @Pointcut(value ...
Spring Boot 內建註冊的所有失敗分析器在這個檔案裡面:/org/springframework/boot/spring-boot/2...
實現功能:Controller透過Feign呼叫另外一個Controller,在透過Service,透過Dubbo呼叫...
bootspring-boot-starter啟動類啟動:@EnableAutoConfiguration@ComponentScanpublic class Application {public static void main(Str...
org.springframework.boot.actuate.autoconfigure.HealthIndicatorAutoConfiguration類自動裝配載入的,開啟對應包下的spring...
boot spring-boot-starter-data-redis io...
/** * @author ChengJianSheng * @date 2019-02-11 */ @Configuration @EnableWebSecurity public class WebSecurityConfig e...
boot spring-boot-starter-data-mongodb2、在 application.properties 中新增配置##start mongodb for basic#————————————————————————b...
@Componentpublic class HelloSender { @Autowired private AmqpTemplate rabbitmqTemplate...
targetAddr=http://192...
@Configurationpublic class EmailConfig { JavaMailSenderImpl sender = new JavaMailSenderImpl()...
springframework spring-context-support ${spring...
components使用介紹下面是從resources/example/scannable/spring...
}@Overridepublic void configure(WebSecurity web) throws Exception {web...
/*** Create by hyhweb on 2021/6/19 17:23** @author Administrator*/@Aspect@Componentpublic class LogAspect {private Logge...
背景MybatisPlus,防止全表更新與刪除外掛:BlockAttackInnerInterceptor,com...
/** Create by hyhweb on 2021/6/1 18:01 */@RestController@Api(tags = “上傳介面”)@RequestMapping(“upload”)public class UploadC...
}com/what21/demo/mapper/EmployeeMapper.xml select * from `employee` SQL指令碼:CREATE TABLE `employee` ( `id` BIG...