Spring Boot, Java Config - No mapping found for HTTP request with URI [/…] in DispatcherServlet with name 'dispatcherServlet'

前端 未结 3 412
春和景丽
春和景丽 2020-12-17 18:50

This has been a quite common problem here in stackOverflow, but none of the topics of the same problem solves mine.

We have a template configuration that uses xml co

3条回答
  •  北海茫月
    2020-12-17 18:59

    The tips here helped me when I got stuck with a similar problem. I fixed it after adding this fragment on my configuration

    @Override
    public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
        configurer.enable();
    }
    

提交回复
热议问题