简帛阁
搜索
首页
技术文章
Java
JavaScript
SPring bean 完成
beanFactoryPostProcess目录概述小结参考资料和推荐阅读LDistiggerforever,CGarenotbrothersforever,throwthepotandshinefo
2022-05-31
Springboot start
@[TOC](Springboot依赖))LDistiggerforever,CGarenotbrothersforever,throwthepotandshineforeverModestyisno
2022-05-31
Hello 自动配置
@[TOC](Springboot依赖))LDistiggerforever,CGarenotbrothersforever,throwthepotandshineforeverModestyisno
2022-05-31
Spring运行时手动注入bean的方法实例
有时候,会有这样一个需求,在程序运行时动态生成的对象,需要注入到Spring容器中进行管理。下面是获取Bean以及注入Bean的工具类importorgspringframeworkbeansBean
2022-05-31
spring IOC容器的Bean管理XML自动装配过程
目录什么是自动装配?自动装配过程1创建2个类2配置文件3测试方法什么是自动装配?在之前的内容中,每给属性注入值都要一个个的用property标签来完成,比如:<beanidbookclassco
2022-05-31
spring中一个接口出现多个实现类时,调用时如何选择实现类
@ComponentpublicinterfaceAorder{voidsay();}@ComponentpublicclassCorderimplementsAorder{@Overridepubl
2022-05-30
nacos服务未启动
feignRetryableException:afsjobadminexecutingPOSThttp://afsjobadmin/api/registryatfeignFeignException
2022-05-29
SpringBootConfiguration详细介绍
@SpringBootConfiguration:SpringBoot的配置类;@Target({ElementTypeTYPE})@Retention(RetentionPolicyRUNTIME)
2022-05-29
Spring Cloud OpenFeign详解
作为SpringCloud的子项目之一,SpringCloudOpenFeign以将OpenFeign集成到SpringBoot应用中的方式,为微服务架构下服务之间的调用提供了解决方案。首先,利用了O
2022-05-28
Spring Boot的Maven插件Spring Boot Maven plugin详解
SpringBoot的Maven插件(SpringBootMavenplugin)能够以Maven的方式为应用提供SpringBoot的支持,即为SpringBoot应用提供了执行Maven操作的可能
2022-05-28
spring中配置redis
1引入依赖<dependency><groupId>redisclients</groupId><artifactId>jedis</artifa
2022-05-28
spring mvc内置tomcat 8 ,零xml 启动
零xml启动springmvc在pomxml中增加依赖<!增加springmvc依赖><dependency><groupId>orgspringframework
2022-05-28
@Transactional注解在什么情况下会失效
@Transactional注解事务的特性:1service类标签(一般不在接口上)上添加@Transactional,可以将整个类纳入spring事务管理,在每个业务方法执行时都会开启一个事务,不过
2022-05-27
SpringBoot框架默认开启了事务吗
背景今天要为service层中的业务逻辑代码添加事务,于是就想看看框架是否通过直接在类或方法上添加@Transactional注解,达到配置事务的目的。解决过程通过百度搜索“SpringBoot开启事
2022-05-26
javaRSA加密解密在线生成公钥私钥方式(工具类)
packageorgspringbladecommonutils;importorgapachecommonscodecbinaryBase64;importorgspringframeworkste
2022-05-24
Spring中配置和读取多个Properties文件
一个系统中通常会存在如下一些以Properties形式存在的配置文件1数据库配置文件demodbproperties:databaseurljdbc:mysql://localhost/smapled
2022-05-23
[SpringBoot] 笔记总结:@ServletComponentScan
前置JSP过滤器JSPServletJSP监听器总结在@SpringBootApplication上使用@ServletComponentScan注解后,Servlet、Filter、Listener
2022-05-23
webservice调用springcloud微服务体系,feign内部报错
这个问题本身没什么太大价值,但是查了很久所以记录和发泄一下:feignRetryableException:nullexecutingGEThttp://****/cr**t/e**/cre****o
2022-05-22
Spring 配置拦截器,禁用浏览器缓存HTTP请求
拦截请求,在response设置不允许缓存请求importjavaxservlethttpHttpServletRequest;importjavaxservlethttpHttpServletRes
2022-05-22
Redis Cluster,Spring Lettuce连接池默认配置不支持高可用的问题 RedisConnectionException RedisCommandExecutionException
目录1报错2问题排查21应用日志22redis日志3问题原因31应用高可用问题32服务器问题4解决方式41应用高可用42服务器5应用连接redis高可用验证51操作redis集群参考命令52配置文件5
2022-05-22
1
2
3
4
5
6
7
8
9
10
11