我的Spring boot 1.4应用程序具有此POST方法来创建资源。根据要求,它应该吐出一个位置标头,以指定新创建的资源的URL(https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html)。我只是想知道是否有比手动构造URL并将其添加到响应中更好的方法。
任何帮助/线索深表感谢
java rest post http spring-mvc
http ×1
java ×1
post ×1
rest ×1
spring-mvc ×1