REST and non-RESTful URL's Together doesn't work

后端 未结 2 1776
甜味超标
甜味超标 2021-02-11 00:42

All my attempts to get a working example of both, pure restful configuration together with at least one non-restful URL failed.

I have this page as a guide: https://cwik

2条回答
  •  没有蜡笔的小新
    2021-02-11 01:05

    Prefix based action mapper delegates finding mapping to the corresponding mapper defined by the

    
    

    This means all URLs that have /rest in the URL before the last slash / are mapped to the rest mapper, others to the default mapper. If you have a receipt controller, then you should use the value "/receipt:rest,:struts" .

    References:

    • REST Plugin
    • RestfulActionMapper
    • PrefixBasedActionMapper

提交回复
热议问题