logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

spring boot @Component无效注解 @Value取值取不到问题

@Component无效注解springboot 加载的时候,使用该注解的类一定要放在接口同级,或者下级包里面,不然是无法进行扫描的,比如接口放在com.xxx.yyy下面,而使用@component的类放在com.xxx.zzz下面,这样子是无法扫描的如下图所以要在启动类上添加扫描包注解@ComponentScan(basePackages = {“com.test.demo.server”})

#spring boot#java#spring
vue :src图片不显示解决办法

<el-carousel-item v-for="(item,index) in houseObj.imgList" :key="index"><img :src="require('../../assets/image/'+item)" alt="" :size="400"></el-carousel-item>参考博客

npm install 指令报错setting up Git hooks cant find .git directory, skipping Git hooks installation

问题描述在gitbub下载别人vue的开源项目,根据readme文件在命令行运行npm install命令报错setting up Git hooks cant find .git directory, skipping Git hooks installation(如下图)问题解决将文件夹node_modules删除后重新npm install从git拉取信息报错信息更改主要是说我缺乏两个依赖表

#vue.js
到底了