You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public interface SomeDAO extends SomeMapper {
void foo();
}
@Repository
public class SomeDAOImpl extends SqlSessionDaoSupport implements SomeDAO {
private SomeMapper mapper;
@Autowired
@Override
public void setSqlSessionFactory(@Qualifier("someSqlSessionFactory") SqlSessionFactory sqlSessionFactory) {
super.setSqlSessionFactory(sqlSessionFactory);
}
@PostConstruct
public void init() {
mapper = this.getSqlSession().getMapper(SomeMapper.class);
}
@Override
public void foo() {
}
}
spring output following logs:
2017-05-18 14:17:45.638 INFO 43600 --- [ main] o.s.aop.framework.CglibAopProxy : Unable to proxy method [public final void org.springframework.dao.support.DaoSupport.afterPropertiesSet() throws java.lang.IllegalArgumentException,org.springframework.beans.factory.BeanInitializationException] because it is final: All calls to this method via a proxy will NOT be routed to the target instance.
Is it OK to ignore this?
PS: I am using Spring Boot 1.4.5.RELEASE
The text was updated successfully, but these errors were encountered:
create a DAO class like following
spring output following logs:
2017-05-18 14:17:45.638 INFO 43600 --- [ main] o.s.aop.framework.CglibAopProxy : Unable to proxy method [public final void org.springframework.dao.support.DaoSupport.afterPropertiesSet() throws java.lang.IllegalArgumentException,org.springframework.beans.factory.BeanInitializationException] because it is final: All calls to this method via a proxy will NOT be routed to the target instance.
Is it OK to ignore this?
PS: I am using Spring Boot 1.4.5.RELEASE
The text was updated successfully, but these errors were encountered: