Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

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

<!-- 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>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #No #CurrentSessionContext #hibernate #spring
ADD COMMENT
Topic
Name
5+9 =