Spring MVC PDF View Example

You may also like...

3
Leave a Reply

avatar
2 Comment threads
1 Thread replies
1 Followers
 
Most reacted comment
Hottest comment thread
3 Comment authors
Memorynotfound.comАртём КобелевKamil Humbatov Recent comment authors
  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