Could not autowire field: org.springframework.security.core.userdetails.UserDetailsService com.vincent.configuration.SecurityConfiguration.userDetailsServiceproperty 'sqlSessionFactory': Error creating bean with name 'sqlSessionFactory' defined in com.vincent.configu
因为我在使用"gradle eclipse".时收到了下面的消息"Could not resolve all dependencies for configuration ':classpath'. >Could not find org.mybatis:mybatis-spring:1.2.2."buildscript { mavenLocal() dependencies {
classpath(&q
non-compatible bean definition of same name and class [my.package.other.ejb.MyService]@ComponentScan("my.package")public class ApplicationConfigurationDataSource dataSource)
Caused by: java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are(SqlSessionDaoSupport.java:75)
at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java(AbstractAutowireCapableBeanFactory
我的数据源jdbc连接bean是使用注释在java文件中定义的。我的spring安全配置是xml格式的。我读到使用了相同的contextLoader,因此加载所有bean应该没有问题。但是,如何将java文件中定义的dataSource bean导入到spring安全配置文件中呢?;import org.springframework.context.annotation.Configuration;
import o
import org.springframework.context.annotation.Bean;@ComponentScan(basePackages = {"nl.somesite.teamshot.config"})
public class AppConfigat java.util.concurrent.FutureTask$Sync.innerRun(