SpringBoot注意事项

1.一般我们为了好的编程习惯,我们在访问网页时都是分为层级路径的,例如下面的/demo路径

我们怎么实现这个路径呢
我们在application.properties配置文件中加入上下文路径
server.context-path=/demo(新版的已经没有这个配置项了,新版的配置项是server.servlet.context-path=/demo)

猜你喜欢

转载自blog.csdn.net/dqxiaoxiao/article/details/82689233
今日推荐