Skip to content

spring http server code @RequestBody IBusinessContext #34309

@edidada

Description

@edidada
public class BusinessContext implements IBusinessContext
    @RequestMapping(value = { "/*.do", "/**/*.do" })
    @ResponseBody
//    public Map<String, Object> execute(@RequestBody IBusinessContext ctx, HttpServletRequest request, HttpServletResponse response) {
    public Map<String, Object> execute(@RequestBody BusinessContext ctx, HttpServletRequest request, HttpServletResponse response) {

        // 过滤输出报文
        return new HashMap<>();
    }

why // public Map<String, Object> execute(@RequestBody IBusinessContext ctx, HttpServletRequest request, HttpServletResponse response) {

this code can not run success in my new project and in my company project it run success?

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: stackoverflowA question that's better suited to stackoverflow.comstatus: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions