springboot统一给controller的url加前缀

在application.propterties增加

#给所有controller的url增加/data前缀
server.servlet.context-path=/data
原文地址:https://www.cnblogs.com/wangbin2188/p/14930015.html