Easter79 Easter79
3年前
springboot2.0+ 使用拦截器导致静态资源被拦截
在spring1.0的版本中,配置拦截器后是不会拦截静态资源的。其配置如下:@ConfigurationpublicclassWebMvcConfigextendsWebMvcConfigurerAdapter{@AutowiredprivateRememberAuthenti
Stella981 Stella981
3年前
Spring 学习笔记(四):Spring AOP
@\TOC\1概述本文主要讲述了AOP的基本概念以及在Spring中AOP的几种实现方式。2AOPAOP,即AspectOrientedProgramming,面向切面编程,与OOP相辅相成。类似的,在OOP中,以类为程序的基本单元,在AOP中的基本单元是Aspect
Stella981 Stella981
3年前
Spring 学习笔记(三):Spring Bean
1Bean配置Spring可以看做是一个管理Bean的工厂,开发者需要将Bean配置在XML或者Properties配置文件中。实际开发中常使用XML的格式,其中<bean中的属性或子元素如下:id:Bean在BeanFactory中的唯一标识,在代码中通过BeanFac
Stella981 Stella981
3年前
Spring Boot 整合 Spring Cache + Redis
1.安装redis  a.由于官方是没有Windows版的,所以我们需要下载微软开发的redis,网址:https://github.com/MicrosoftArchive/redis/releases  b.解压后,在redis根目录打开cmd界面,输入:redisserver.exeredis.windows.conf,启动redis(关闭
Stella981 Stella981
3年前
IntelliJ Idea解决Could not autowire
IntelliJIdea解决Couldnotautowire.Nobeansof'xxxx'typefound的错误提示1.问题描述  在Idea的spring工程里,经常会遇到
Stella981 Stella981
3年前
Spring Event 阅读指南
SpringEvent阅读指南资料:https://docs.spring.io/springframework/docs/current/reference/html/core.htmlcontextfunctionalityevents(https://www.oschina.net/ac
Stella981 Stella981
3年前
Spring Boot Dubbo Dubbok spring cloud
比较springcloud和dubbo,各自的优缺点是什么趁年轻再疯狂一次吧CSDN博客https://blog.csdn.net/u010664947/article/details/80007767网易考拉海购Dubbok框架优化详解\_存储\_基础信息化\_文章\_eworks数字化企业网http://articles.ewo
Stella981 Stella981
3年前
Spring Boot 与 Kotlin使用Spring
在《SpringBoot与Kotlin使用JdbcTemplate连接MySQL》中介绍了一种基本的数据访问方式,结合构建RESTfulAPI和使用Thymeleaf模板引擎渲染Web视图的内容就已经可以完成App服务端和Web站点的开发任务了。然而,在实际开发过程中,对数据库的操作无非就“增删改查”。就最为普遍的单表操作而言,除了表和字段不
Stella981 Stella981
3年前
Spring boot的@Configuration
  就在我惊艳于spring4的AbstractAnnotationConfigDispatcherServletInitializer小巧简洁(如下)的时候却发现springboot下面竟然无效。1publicclassInitializerextendsAbstractAnnotationConfigDispatcherSer
JXDN JXDN
1年前
你写的深度克隆真的“深度”吗?
为了更好的理解其原理,我们自己来手写一个通用性非常强的深度克隆函数