Skip to content

Adding a DispatcherServlet bean does not always override the default #91

@masrawi

Description

@masrawi

I do not want boot to handle the / mapping for me. I want it to be handled by the tomcat one. But it seems that boots always handles this. What I used to do with the classic web.xml is define one mapping:

<servlet-mapping>
<servlet-name>dispatcher</servlet-name>
<url-pattern>/api/*</url-pattern>
</servlet-mapping>

now I do not see a way to achieve that looking at EmbeddedWebApplicationContext class in the getServletContextInitializerBeans method

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions