org.hibernate.HibernateException: No CurrentSessionContext configured! hibernate spring
snippet in html

org.hibernate.HibernateException: No CurrentSessionContext configured! hibernate spring

user5649

<!-- For Properties File -->
spring.jpa.properties.hibernate.current_session_context_class=org.springframework.orm.hibernate4.SpringSessionContext

<!-- For XML Config -->
<property name="hibernate.current_session_context_class">thread</property>