Code Monkey home page Code Monkey logo

shd201407-app's Introduction

SHD201407-app

使用Spring4的JavaConfig整合Druid Hibernate4.3 2014-07

  1 基于maven的项目,整合内容spring4.0.3+hibernate4.3.5+jpa2.1+druid1.0.6+JDK8编写
  2 Spring的JavaConfig编程:Spring的no xml编程。
  3 使用Druid连接池管理数据库连接,druid1.0.6提供的DruidConnectionProvider不适用Hibernate4.3,抛出下面的异常:
  Caused by: java.lang.ClassNotFoundException: org.hibernate.service.jdbc.connections.spi.ConnectionProvider
  	at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
  	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
  	at java.security.AccessController.doPrivileged(Native Method)
  	at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
  	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
  	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
  	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
  	... 65 more
  在项目中,参考原有实现com.urely.shd2014.DruidConnectionProvider,就可以继续使用。

shd201407-app's People

Contributors

guocw998 avatar

Watchers

James Cloos avatar 吃人的墙 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.