单项选择题
Spring Boot官网中明确可以存放配置文件的位置主要有以下4个。系统会默认读取这些位置的配置文件,其中优先级最高的为()。
①classpath根路径下。
②classpath根路径下的config目录下。
③当前工程路径下。
④当前工程路径下的config目录下。
A.①
B.②
C.③
D.④
点击查看答案&解析
相关考题
-
单项选择题
在SpringBoot框架中,以下文件的调用顺序正确的是()
A.controller文件调用service文件中的方法,service文件调用mapper文件中的方法
B.service文件调用controller文件中的方法,controller文件调用mapper文件中的方法
C.mapper文件调用controller文件中的方法
D.mapper文件调用service文件中的方法 -
单项选择题
Thymeleaf设置编码方式的配置属性为()。
A.spring.thymeleaf.mode
B.spring.thymeleaf.content-type
C.spring.thymeleaf.cache
D.spring.thymeleaf.encoding -
单项选择题
Mybatis通过()或注解的方式将要执行的各种statement(statement、preparedStatemnt)配置起来。
A.yml
B.json
C.xwl
D.xml
