Skip to content

Commit 2dc657a

Browse files
committed
Fix resolving of static resources
1 parent ba8bd9f commit 2dc657a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/org/commonwl/view/WebConfig.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,11 @@
2222
import org.springframework.context.annotation.Configuration;
2323
import org.springframework.http.MediaType;
2424
import org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer;
25-
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
2625
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
2726

2827
import static org.springframework.http.MediaType.parseMediaType;
2928

3029
@Configuration
31-
@EnableWebMvc
3230
public class WebConfig extends WebMvcConfigurerAdapter {
3331

3432
/**
@@ -37,7 +35,7 @@ public class WebConfig extends WebMvcConfigurerAdapter {
3735
*/
3836
@Override
3937
public void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
40-
configurer.favorParameter(true)
38+
configurer.favorPathExtension(true).favorParameter(false).useJaf(true)
4139
.mediaType("html", MediaType.TEXT_HTML)
4240
.mediaType("json", MediaType.APPLICATION_JSON)
4341
.mediaType("turtle", parseMediaType("text/turtle"))

0 commit comments

Comments
 (0)