文章分类 -  Spring & Maven

摘要:Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean. 原因是没有加上注解 @SpringBootApplication 阅读全文
posted @ 2023-10-12 14:25 嘉合 阅读(1) 评论(0) 推荐(0) 编辑
摘要:Setting.xml 配置 https://developer.aliyun.com/article/1471651 ☆ https://segmentfault.com/a/1190000020534274?sort=newest 指定JDK版本 1. IDEA 在项目设置中 指定JDK,会在I 阅读全文
posted @ 2023-09-04 14:18 嘉合 阅读(8) 评论(0) 推荐(0) 编辑
摘要:原著: https://zhuanlan.zhihu.com/p/556760563?utm_id=0 SpringBoot实现注解的属性动态注入。以ElasticSearch的java查询的indexName为例 配置文件:conf.properties 配置文件载入类:PropertyConfi 阅读全文
posted @ 2023-08-09 17:16 嘉合 阅读(466) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/wang0907/article/details/117645868 2:三种实现方式2.1:通过main方法中添加代码@SpringBootApplicationpublic class SpringbootHelloWorldApplication { 阅读全文
posted @ 2023-07-21 10:13 嘉合 阅读(163) 评论(0) 推荐(0) 编辑
摘要:org.springframework.aop.framework.CglibAopProxy org.springframework.aop.framework.JdkDynamicAopProxy Advisor 顾问 (增强器) Advice 通知 AdvisedSupport.java Ad 阅读全文
posted @ 2023-07-15 22:40 嘉合 阅读(1) 评论(0) 推荐(0) 编辑
摘要:Spring AOP 是一个框架,它提供了一种实现跨越多个对象和层次的横切关注点(cross-cutting concerns)的模块化和可重用的方式。横切关注点是影响应用程序的多个部分的行为或功能,例如日志记录、安全性、缓存和事务管理。这些关注点很难使用传统的面向对象编程技术进行封装,因为它们通常 阅读全文
posted @ 2023-06-08 23:31 嘉合 阅读(5) 评论(0) 推荐(0) 编辑
摘要:@Import注解提供了三种用法 1、@Import一个普通类 spring会将该类加载到spring容器中 2、@Import一个类,该类实现了ImportBeanDefinitionRegistrar接口,在重写的registerBeanDefinitions方法里面,能拿到BeanDefini 阅读全文
posted @ 2023-05-23 11:15 嘉合 阅读(113) 评论(0) 推荐(0) 编辑
摘要:<plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>${spring.boot.version}</version> <conf 阅读全文
posted @ 2023-03-25 15:42 嘉合 阅读(31) 评论(0) 推荐(0) 编辑

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