Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert tip

    If you're unit testing, you should instantiate only the service and mock the dependencies. If you're testing integration, you should add all the mocking to the configurations file.

Solutions on the web

via Stack Overflow by wei Xiong
, 1 year ago
Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
via Stack Overflow by gstackoverflow
, 2 years ago
via Stack Overflow by JafarKhQ
, 2 years ago
via Stack Overflow by David Welch
, 2 years ago
A ServletContext is required to configure default servlet handling
java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required	at org.springframework.util.Assert.notNull(Assert.java:115)	at org.mybatis.spring.support.SqlSessionDaoSupport.checkDaoConfig(SqlSessionDaoSupport.java:75)	at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:74)	at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)