Skip to content

LogViewerServlet still reference to javax.servlet.http.HttpServlet, unable to use it in spring boot 3. #216

@Mike-the-one

Description

@Mike-the-one

This is my code:

ServletRegistrationBean<LogViewerServlet> servlet = new ServletRegistrationBean<>();

My spring boot is 3.x.x which is use jakarta packages instead of javax.

So my code won't compile:

Bound mismatch: The type LogViewerServlet is not a valid substitute for the bounded parameter <T extends Servlet> of the type ServletRegistrationBean<T>

Could you please fix that?

thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions