-
Notifications
You must be signed in to change notification settings - Fork 41.1k
java.lang.ClassNotFoundException: org.springframework.dao.DataAccessException #1839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Which Spring Boot version are you using? I couldn't reproduce. Do you have any other component in the package were you defined this app? |
I'm using 1.2.0.M2. It occurred even when there's no component. |
I still can't reproduce. Please attach a real project. Here's what I did, go on start.spring.io, select 1.2.0.M2, select "web", copy/paste the code above and run. It works |
I didn't use Spring Initializer. I shared the project at: |
Well, maybe you should have :) Here's the exception you have in the logs
|
Oh, sorry. I didn't understand the logs before you mentioned it. Now I got it. Thanks 👍 |
@snicoll Thank you very much |
👍 |
Hi, I have the very similar issue in the latest version of Spring boot |
As I told you on stackoverflow already, you probably have one class in the default package that has component scan (defaut package = no |
I have created new issue #3850 with details. Please check if that is issue or not and close it. |
I also have this problem do you resolve it 。 please tell me thanks |
When 'org.springframework.boot:spring-boot-starter-web' dependency is only added and
run the following code:
Got the following exception:
I think there's no reason to get the above exception.
The text was updated successfully, but these errors were encountered: