问题描述
- spring @Qualifier得到的bean为null 求解
-
xml文件配置实现类:
@Implementation
@Repository( "profilesdbDao" )
public class ProfilesDaoImpl implements ProfilesDao
{注入地方:
@Service
@Configurable( dependencyCheck = true )
public class ResourceProfileLoaderNew
{/** The log. */ Logger log = Logger.getLogger( ResourceProfileLoaderNew.class.getName() ); /** The status. */ static boolean status; /** The pdao. */ @Autowired @Qualifier( "pDao" ) private ProfilesDao pdao;
tomcat启动没有任何异常 运行的时候pdao就为null !求解
时间: 2024-11-29 04:27:13