Spring boot taglibs
I added following dependency:
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-taglibs</artifactId>
</dependency>
Now it works.
Add the following dependency
For : <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%> :
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
For : <%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%> :
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-taglibs</artifactId>
</dependency>