Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

An error occurred in the spring configuration file in JAVA prompts Class & # 039; what about not found

2025-04-13 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you what to do about Class' org.apache.commons.dbcp.BasicDataSource' not found when there is an error in the spring configuration file in JAVA. I believe most people don't know much about it, so share this article for your reference. I hope you will gain a lot after reading this article. Let's learn about it together.

When the three major frameworks of JAVA Spring+Struts+Hibernage merge, after the newly created JAVA web project joins spring3.0, the spring configuration file appears.

Error prompt:

Class' org.apache.commons.dbcp.BasicDataSource' not found

Environment:

Development platform: myeclipse 8.5

Development language: JAVA

SSH version: spring 3.0+struts2.1+hibernate3.3

The specific error report is shown in the figure:

In fact, the reason for this problem is that the jar package: commons-dbcp.jar is missing when the project joins the spring framework.

Download commons-dbcp.jar from the Internet, or find the file in myeclipse's maven library and copy it to WebRoot\ WEB-INF\ lib.

As you can see, after commons-dbcp.jar joins Lib, the project no longer prompts for error messages.

The above is all the contents of the article "what to do with Class' org.apache.commons.dbcp.BasicDataSource' not found when there is an error in the spring configuration file in JAVA". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report