Only adding @EnableWebMvc
in main class resolved the problem:
@EnableWebMvc
@SpringBootApplication
public class MyApp {
public static void main(String[] args) {
SpringApplication.run(MyApp.class);
}
}
More Related Contents:
- Cannot open Swagger UI in its Version 3 in my Spring Boot Example
- Springboot 2.6.0 / Spring fox 3 – Failed to start bean ‘documentationPluginsBootstrapper’
- Spring Boot 2.6.0 / Spring fox 3 – Failed to start bean ‘documentationPluginsBootstrapper’
- How to change Swagger-ui URL prefix?
- Disabling a filter for only a few paths
- How to properly use findBySomeOtherId not findById in Spring data jpa?
- How to access a value defined in the application.properties file in Spring Boot
- What is this spring.jpa.open-in-view=true property in Spring Boot?
- Spring-Boot Jersey: allow Jersey to serve static content
- Override default Spring-Boot application.properties settings in Junit Test
- Spring Boot how to hide passwords in properties file
- How to find out the currently logged-in user in Spring Boot?
- how to log Spring 5 WebClient call
- Listing all deployed rest endpoints (spring-boot, jersey)
- Spring Boot – Environment @Autowired throws NullPointerException
- package org.springframework.boot does not exist
- Problem with deserialization of LocalDateTime in Junit test
- Spring Security 5 : There is no PasswordEncoder mapped for the id “null”
- How to exclude *AutoConfiguration classes in Spring Boot JUnit tests?
- Spring Boot shutdown hook
- How to externalize Spring Boot application.properties to tomcat/lib folder
- Can I negate (!) a collection of spring profiles?
- How to disable spring-data-mongodb autoconfiguration in spring-boot
- Best way of handling entities inheritance in Spring Data JPA
- Integration Test with Spring Boot and Spock
- Jackson date-format for OffsetDateTime in Spring Boot
- SpringBoot doesn’t handle org.hibernate.exception.ConstraintViolationException
- Single role multiple IP addresses in Spring Security configuration
- Spring-Boot @Autowired in main class is getting null
- Mono switchIfEmpty() is always called