Search code examples
springmavenjstl

Which version is compatible with which? Spring and JSTL


I am new to Maven. Now, in my POM, I declared I need Spring 3.0.5.RELEASE. After I started my server and tried to access a page, the server threw a java.lang.ClassNotFoundException: javax.servlet.jsp.jstl.core.Config error.

Now after researching online, I found that I need to include a JSTL dependency like so:

  <dependency>
            <groupId>jstl</groupId>
            <artifactId>jstl</artifactId>
            <version>1.2</version>
        </dependency>

I have faced this question multiple times. How do I know which version of jstl is comptabile with Spring 3.0.5.RELEASE

I know this might be a basic question but it will help everyone


Solution

  • You could also try generating a Spring Boot Maven project via http://start.spring.io/ rather then manually setting one up.