静态资源的文件夹 "classpath:/META-INF/resources/", "classpath:/resources/", "classpath:/static/", "classpath:/public/" "/":当前项目的根路径 这里有个坑==》启动项目后访问不到静态资源,一直宝4 ...
分类:
编程语言 时间:
2020-06-17 21:45:55
阅读次数:
581
1、实现方式一:Spring中的@PropertySource @Component @PropertySource("classpath:user.properties") public class UserInfo { @Value("${user.username}") private Str ...
分类:
编程语言 时间:
2020-06-12 12:30:31
阅读次数:
67
一、JMeter下载及使用 1、JMeter下载 下载地址:http://jmeter.apache.org/download_jmeter.cgi 选择Binaries版本,下载.zip结尾的文件并解压 2、配置环境变量 新建系统变量JMETER_HOME 配置classpath变量,没有的话也要 ...
分类:
其他好文 时间:
2020-06-11 22:07:35
阅读次数:
94
#mybatis-plus.config-location=classpath:mybatis/mybaytis-config.xmlmybatis-plus.mapper-locations=classpath:mybatis/mapper/*.xml###显示SQL语句部分mybatis-plu ...
分类:
数据库 时间:
2020-06-10 13:31:43
阅读次数:
195
1、Environment @Configurable @PropertySource("classpath:/userinfo.properties") //这个属性文件会加载到Spring的Environment中 public class UserInfoConfig { @Autowired ...
分类:
其他好文 时间:
2020-06-09 16:29:18
阅读次数:
50
1、目录结构 Application属性文件,按优先级排序,位置高的将覆盖位置 当前项目目录下的一个/config子目录 当前项目目录 项目的resources即一个classpath下的/config包 项目的resources即classpath根路径(root) 二、读取顺序 如果在不同的目录 ...
分类:
编程语言 时间:
2020-06-08 19:15:47
阅读次数:
90
springBoot项目打jar包后,配置文件(application.properties)封装于jar包中,修改起来不方便,可以使用其他的办法。spring boot给了几个读取配置文件的位置,我们可以通过这个方式去从jar包外部修改配置文件。启动jar包时,springBoot会按照以下顺序去 ...
分类:
编程语言 时间:
2020-06-08 10:40:28
阅读次数:
200
一、下载及安装、校验:比较熟悉,本次学习计划中直接跳过了; 二、环境变量的配置(windows 10平台): 新建Java_Home:即Java的安装路径,如:C:\Program Files (x86)\Java\jdk1.8.0_191 新建CLASSPATH:.;%JAVA_HOME%\lib ...
分类:
编程语言 时间:
2020-06-07 00:51:28
阅读次数:
82
1、打开文件 vi ~/.bashrc 2、配置(在卡开文件的尾部增加配置) # Java HOMEexport JAVA_HOME=/usr/local/jdk1.8.0_211export JRE_HOME=${JAVA_HOME}/jreexport CLASSPATH=.:${JAVA_HO ...
分类:
系统相关 时间:
2020-06-06 13:17:10
阅读次数:
93
flutter 编译报错 What went wrong: Could not determine the dependencies of task ':app:preDebugBuild'. Could not resolve all task dependencies for configura ...
分类:
系统相关 时间:
2020-06-06 11:22:14
阅读次数:
219