不是自己开发的类,就可以使用ApplicationContext.xml进行装配bean;自己开发的类可以使用注解装配。 dbcp连接池 c3p0连接池 也可以加个配置 jdbc.properties。 设置基本四项!