在写pythonweb的时候,由于python的灵活性,可以使用变量作为路由地址。 springboot 也支持使用变量指定 context path,方法如下: 设置一个属性,取变量就可以达到动态指定 context path。