阅读背景:

我可以使用基于注释的依赖注入,包括JDBC驱动程序配置吗?

来源:互联网 

Some days ago I have seen a Java source code example of a class (maybe EJB) which iirc had a JDBC connection field annotated with the complete JDBC configuration (URL, user name, password, driver class). Unfortunately I forgot to keep a bookmark - so my question: is there a DI way to use DI annotations for a complete JDBC configuration, instead of the usual way (using JNDI data sources) in Java?Some days ago I have seen a Java source code ex




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: