File tree 1 file changed +1
-3
lines changed
src/main/java/org/commonwl/view
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 22
22
import org .springframework .context .annotation .Configuration ;
23
23
import org .springframework .http .MediaType ;
24
24
import org .springframework .web .servlet .config .annotation .ContentNegotiationConfigurer ;
25
- import org .springframework .web .servlet .config .annotation .EnableWebMvc ;
26
25
import org .springframework .web .servlet .config .annotation .WebMvcConfigurerAdapter ;
27
26
28
27
import static org .springframework .http .MediaType .parseMediaType ;
29
28
30
29
@ Configuration
31
- @ EnableWebMvc
32
30
public class WebConfig extends WebMvcConfigurerAdapter {
33
31
34
32
/**
@@ -37,7 +35,7 @@ public class WebConfig extends WebMvcConfigurerAdapter {
37
35
*/
38
36
@ Override
39
37
public void configureContentNegotiation (ContentNegotiationConfigurer configurer ) {
40
- configurer .favorParameter (true )
38
+ configurer .favorPathExtension ( true ). favorParameter ( false ). useJaf (true )
41
39
.mediaType ("html" , MediaType .TEXT_HTML )
42
40
.mediaType ("json" , MediaType .APPLICATION_JSON )
43
41
.mediaType ("turtle" , parseMediaType ("text/turtle" ))
You can’t perform that action at this time.
0 commit comments