|
|
1
8
默认情况下,springboot服务于根上下文路径(/)上的内容,但是我们可以用不同的方式来更改它。
2) 使用Java系统属性
3) 使用OS环境变量
5) 使用Java配置
有了弹簧靴2,我们可以
使用springboot1,我们可以创建
Note:-
Java配置
|
|
|
2
0
|
|
|
3
0
|
|
|
4
0
在application.properties中添加以下行(适用于Spring Boot 1.x):
|