随笔分类 -  Spring

摘要:声明式: dependencies { implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.springframework.boot:spring-boot-starter-aop 阅读全文
posted @ 2022-06-05 19:21 ascertain 阅读(34) 评论(0) 推荐(0) 编辑
摘要:只扫描@Repository, 必须关闭默认Filter @ComponentScan(value = {"io.vent.venial"}, includeFilters = {@ComponentScan.Filter(type = FilterType.ANNOTATION, classes 阅读全文
posted @ 2022-06-04 15:47 ascertain 阅读(28) 评论(0) 推荐(0) 编辑
摘要:package io.jot.memento; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.sp 阅读全文
posted @ 2022-06-01 23:28 ascertain 阅读(29) 评论(0) 推荐(0) 编辑
摘要:Config: package io.jot.memento; import org.springframework.context.annotation.Configuration; import org.springframework.core.MethodParameter; import o 阅读全文
posted @ 2022-06-01 21:29 ascertain 阅读(149) 评论(0) 推荐(0) 编辑
摘要:@InitBinder package io.jot.memento; import org.springframework.format.Formatter; import java.text.ParseException; import java.text.SimpleDateFormat; i 阅读全文
posted @ 2022-06-01 16:31 ascertain 阅读(61) 评论(0) 推荐(0) 编辑
摘要:package io.jot.memento; import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.support.DefaultListableBea 阅读全文
posted @ 2022-06-01 15:18 ascertain 阅读(51) 评论(0) 推荐(0) 编辑
摘要:java -jar --add-exports=java.base/sun.net.util=ALL-UNNAMED .\sentinel-dashboard-1.8.4.jar --server.port=9090 注解支持 · alibaba/Sentinel Wiki · GitHub int 阅读全文
posted @ 2022-05-05 19:20 ascertain 阅读(28) 评论(0) 推荐(0) 编辑
摘要:持久化到MySQL: spring.datasource.platform=mysql ### Count of DB: db.num=1 ### Connect URL of DB: db.url.0=jdbc:mysql://127.0.0.1:3306/ssm?characterEncodin 阅读全文
posted @ 2022-05-04 22:22 ascertain 阅读(27) 评论(0) 推荐(0) 编辑
摘要:@Component(value = "customBeanName") public class CustomComponentBean implements BeanPostProcessor{ @Override public Object postProcessAfterInitializa 阅读全文
posted @ 2022-05-03 13:51 ascertain 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-04-30 22:38 ascertain 阅读(185) 评论(0) 推荐(0) 编辑
摘要:@Mapper,最终 Mybatis 会有一个拦截器,会自动的把 @Mapper 注解的接口生成动态代理类。当然,前提是,映射器(Mapper.xml)必须满足动态代理的条件:1.namespace与接口的全限定类名相同2.id名与接口中方法名一致 <?xml version="1.0" encod 阅读全文
posted @ 2022-04-28 22:24 ascertain 阅读(35) 评论(0) 推荐(0) 编辑
摘要:配置类: package us.transcode.thymeleaf.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configur 阅读全文
posted @ 2022-04-28 22:11 ascertain 阅读(30) 评论(0) 推荐(0) 编辑
摘要:MVC: package us.transcode.thymeleaf.exception; import org.springframework.stereotype.Component; import org.springframework.web.servlet.HandlerExceptio 阅读全文
posted @ 2022-04-28 21:44 ascertain 阅读(148) 评论(0) 推荐(0) 编辑
摘要:spring: datasource: type: com.alibaba.druid.pool.DruidDataSource url: jdbc:mysql://localhost:3306/thymeleaf?characterEncoding=UTF-8 driver-class-name: 阅读全文
posted @ 2022-04-28 21:39 ascertain 阅读(36) 评论(0) 推荐(0) 编辑
摘要:<!-- https://mvnrepository.com/artifact/com.github.ulisesbocchio/jasypt-spring-boot-starter --> <dependency> <groupId>com.github.ulisesbocchio</groupI 阅读全文
posted @ 2022-04-28 18:04 ascertain 阅读(125) 评论(0) 推荐(0) 编辑
摘要:${AnsiColor.BRIGHT_GREEN} ${AnsiStyle.BOLD} _______ _______ _ __________________ _______ _______ _______ ( ____ \( ___ )( ( /|\__ __/\__ __/( ____ \|\ 阅读全文
posted @ 2022-04-28 17:17 ascertain 阅读(32) 评论(0) 推荐(0) 编辑
摘要:<plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <fork>true</fork> <!--增加JVM参数-- 阅读全文
posted @ 2022-04-26 22:49 ascertain 阅读(353) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/17866996/how-to-access-plain-json-body-in-spring-rest-controller 阅读全文
posted @ 2022-04-23 00:17 ascertain 阅读(81) 评论(0) 推荐(0) 编辑
摘要:spring: mvc: view: prefix: /servlet/static/ # 不加context-path suffix: .html static-path-pattern: /static/** servlet: path: /servlet load-on-startup: 1 阅读全文
posted @ 2022-04-20 00:41 ascertain 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-04-18 23:17 ascertain 阅读(26) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示