Spring MVC PDF View Example

You may also like...

  • Kamil Humbatov

    How can I change pdf path?

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

    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?

    • 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:

      public class WebConfig extends WebMvcConfigurerAdapter{


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