Spring MVC PDF View Example

You may also like...

Leave a Reply

3 Comments on "Spring MVC PDF View Example"

avatar
  Subscribe  
newest oldest
Notify of
Kamil Humbatov
Guest
Kamil Humbatov

How can I change pdf path?

Артём Кобелев
Guest
Артём Кобелев

Thanks for example app!

XML config for view mapping provided in example doesn’t work.
Only java config WebConfig.java works.

Could you verify and fix that, please?

Memorynotfound.com
Guest
Memorynotfound.com

Hello,

I Just tested the Spring XML Configuration and it should work.
How are you importing the xml configuration?

You can add the configuration using following java configuration:

@Configuration
@ImportResource("classpath:app-config.xml")
public class WebConfig extends WebMvcConfigurerAdapter{

}

Make sure you don’t mix @EnableMvc and mvc:annotation-driven

Kr,
Memorynotfound