上一页 1 2 3 4 5 6 7 8 ··· 16 下一页
摘要: @Configuration @EnableSwagger2 public class SwaggerConfig implements WebMvcConfigurer { @Bean public Docket createRestApi() { return new Docket(Docume 阅读全文
posted @ 2021-07-07 11:38 潜跃 阅读(316) 评论(0) 推荐(0) 编辑
摘要: @Configuration public class KaptchaConfig { @Bean public DefaultKaptcha producer() { Properties properties = new Properties(); properties.put("kaptcha 阅读全文
posted @ 2021-07-07 11:28 潜跃 阅读(62) 评论(0) 推荐(0) 编辑
摘要: @Configuration public class CorsConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { registry.addMappin 阅读全文
posted @ 2021-07-07 11:25 潜跃 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 一、@Bean注解的作用 @Bean是一个方法级别上的注解,主要用在@Configuration注解的类里,也可以用在@Component注解的类里。添加的bean的id为方法名(来自文章1) 二、注解分为两类: 1、一类是使用Bean,即是把已经在xml文件中配置好的Bean拿来用,完成属性、方法 阅读全文
posted @ 2021-07-07 10:57 潜跃 阅读(5059) 评论(0) 推荐(0) 编辑
摘要: 一、无参(基本全是查询) 二、有参 1、id 2、ids[] :数组 3、Entity(对象) 4、Map<key,Object> 5、Form对象 6、MultipartFile 7、HttpRequest/HttpReponse 阅读全文
posted @ 2021-07-06 17:50 潜跃 阅读(661) 评论(0) 推荐(0) 编辑
摘要: 本篇讲诉数据库中事务的四大特性(ACID),并且将会详细地说明事务的隔离级别。 如果一个数据库声称支持事务的操作,那么该数据库必须要具备以下四个特性: ⑴ 原子性(Atomicity) 原子性是指事务包含的所有操作要么全部成功,要么全部失败回滚,这和前面两篇博客介绍事务的功能是一样的概念,因此事务的 阅读全文
posted @ 2021-07-06 15:47 潜跃 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 文章:https://blog.csdn.net/jiangyu1013/article/details/84397366 阅读全文
posted @ 2021-07-06 15:42 潜跃 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 推荐文章1:https://blog.csdn.net/woshimaxiao1/article/details/83661464 推荐文章2:https://blog.csdn.net/qq_40574571/article/details/97612100 推荐文章3:https://zhuan 阅读全文
posted @ 2021-07-05 15:31 潜跃 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 解释的很好的文章:https://www.jianshu.com/p/2accc2840a1b 阅读全文
posted @ 2021-07-02 17:26 潜跃 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 摘自文章:https://www.zhihu.com/question/270722275/answer/1485746069 阅读全文
posted @ 2021-07-02 17:05 潜跃 阅读(23) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 16 下一页