spring-content: 404 when running on Java 9, or above

Thanks for awesome work on this project…

I want to add spring-content to an existing application but i got this error. I disabled some of my configuration and i found that when when mvcConfig is in use, i get 404 but when i remove the mvcConfig file, spring-content works

Error message

Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.

Thu Aug 26 12:31:35 WAT 2021
There was an unexpected error (type=Not Found, status=404).

console log o.s.web.servlet.PageNotFound : No mapping for GET /videos/Kevon-Carter.mp4

mvcConfig file

@EnableWebMvc
@Configuration
public class MvcConfig implements WebMvcConfigurer {

    @Override
    public void addInterceptors(final InterceptorRegistry registry) {
        registry.addInterceptor(new LoggerInterceptor());
    }
}

VideoStore file

@StoreRestResource(path = "/videos")
public interface VideoStore extends Store<String> {

}

plugins

<dependency>
	<groupId>com.github.paulcwarren</groupId>
	<artifactId>spring-content-fs-boot-starter</artifactId>
	<version>1.2.4</version>
</dependency>
 <dependency>
	<groupId>com.github.paulcwarren</groupId>
	<artifactId>spring-content-rest-boot-starter</artifactId>
	<version>1.2.4</version>
</dependency>

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (8 by maintainers)

Most upvoted comments

@paulcwarren PR submitted