项目里面为什么不加上ComponentScan("com.yym.*")注解,也能加载到子目录里面的Controller,Service,Component的bean呢?
启动类没有ComponentScan注解
SpringBootApplication
public class BootStrap {public static v…
redis的使用、打开、关闭的详细介绍
1.安装redis
cd /
cd opt/
wget https://download.redis.io/releases/redis-5.0.5.tar.gz 2.解压redis
tar xzf redis-5.0.5.tar.gz 3.执行make
cd redis-5.0.5/
make 如果出现找不到make的情况就yum install -y make
如果没有gcc就…