Spring boot multiple contexts - one for public error

帅比萌擦擦* 提交于 2020-01-16 18:24:15

问题


I have this requirement, where "com.my.application/" should show customized 404 error page while "com.my.application/data" should work properly.

Following context-path is configured in application.properties

server.context-path=/data

What are my options? How can I keep context-path "/" and "/data" both alive?

来源:https://stackoverflow.com/questions/55247140/spring-boot-multiple-contexts-one-for-public-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!