随笔分类 -  springboot

摘要:转载:https://juejin.cn/post/6979845038347927583#comment 阅读全文
posted @ 2023-07-12 14:44 Chenyi_li 阅读(1) 评论(0) 推荐(0) 编辑
摘要:![](https://img2023.cnblogs.com/blog/1892439/202307/1892439-20230707085649970-895080812.png) ![](https://img2023.cnblogs.com/blog/1892439/202307/18924 阅读全文
posted @ 2023-07-07 09:12 Chenyi_li 阅读(38) 评论(0) 推荐(0) 编辑
摘要:## 对springboot的了解,SpringBoot自动装配原理 答:自动装配就是自动把第三方组件的Bean转载到IOC容器里面,不需要去手动配置。在springboot应用里只需要在启动类上加上@SpringBootApplication注解,就可以实现自动装配。这个复合注解中主要实现自动装配 阅读全文
posted @ 2023-07-03 17:06 Chenyi_li 阅读(26) 评论(0) 推荐(0) 编辑
摘要:参考:https://www.bilibili.com/video/BV1S3411p7Cv/?spm_id_from=333.788.top_right_bar_window_history.content.click&vd_source=46d50b5d646b50dcb2a208d3946b1 阅读全文
posted @ 2023-06-06 19:50 Chenyi_li 阅读(6) 评论(0) 推荐(0) 编辑
摘要:### controller是单例模式还是多例模式 在Java中,Controller既可以是单例模式,也可以是多例模式,这取决于具体的实现方式。 在单例模式中,Controller只会被实例化一次,多个线程共享同一个实例。这样可以节约系统资源,提高系统性能。但是在多线程环境下,如果不加以保护,可能 阅读全文
posted @ 2023-05-21 11:13 Chenyi_li 阅读(907) 评论(0) 推荐(0) 编辑
摘要:@PostConstruct 注解的用途: 在当前对象加载完依赖注入的 bean 后,运行这个被 @PostConstruct 注解的方法,而且只运行一次。 阅读全文
posted @ 2023-05-05 22:20 Chenyi_li 阅读(11) 评论(0) 推荐(0) 编辑
摘要:@SpringBootTest @Transactional // springboot test中加事务注解,默认事务操作回滚,但是id会被占用 @Rollback(true) // 是否回滚,默认true是回滚,false不回滚,成功操作数据库 阅读全文
posted @ 2023-01-30 14:50 Chenyi_li 阅读(64) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/tz845195485/article/details/123361895 # logging 日志相关的配置 #日志级别 trace<debug<info<warn<error<fatal #默认级别为info,即默认打印info及其以上级别的日志 阅读全文
posted @ 2022-09-07 16:33 Chenyi_li 阅读(75) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/ChineseSoftware/article/details/118413266 https://www.freesion.com/article/1756683508/ @Controller public class UserControlle 阅读全文
posted @ 2022-08-28 16:42 Chenyi_li 阅读(39) 评论(0) 推荐(0) 编辑
摘要:![](https://img2023.cnblogs.com/blog/1892439/202306/1892439-20230625154058786-293476918.png) ![](https://img2023.cnblogs.com/blog/1892439/202305/18924 阅读全文
posted @ 2022-07-13 10:42 Chenyi_li 阅读(23) 评论(0) 推荐(0) 编辑
摘要:参考:https://blog.csdn.net/m0_63836794/article/details/123082646?spm=1001.2101.3001.6650.1&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault% 阅读全文
posted @ 2022-05-23 11:14 Chenyi_li 阅读(55) 评论(0) 推荐(0) 编辑
摘要:参考:https://blog.csdn.net/weixin_43874301/article/details/112986316?utm_term=IDEA%E6%89%93%E5%BC%80%E6%BA%90%E7%A0%81%E6%B2%A1%E6%9C%89%E6%B3%A8%E9%87% 阅读全文
posted @ 2022-05-15 17:06 Chenyi_li 阅读(232) 评论(0) 推荐(0) 编辑
摘要:转自:https://www.pianshen.com/article/58601308015/ springboot配置MVC的官网信息:https://docs.spring.io/spring-boot/docs/2.2.1.RELEASE/reference/htmlsingle/#boot 阅读全文
posted @ 2021-01-19 09:01 Chenyi_li 阅读(25) 评论(0) 推荐(0) 编辑

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