• Register
0 votes
57 views

Problem :

For many days I am trying to create Spring CRUD application but getting following error
org.springframework.beans.factory.unsatisfieddependencyexception: error creating bean with name
6 5 3
6,930 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

If you want to use Spring Boot, your main app should be like below code snippet 

package aa.bb.cc;
@SpringBootApplication
@ComponentScan({ "aa.bb.cc.*" })
public class springApplication {
.....

Please make sure that you have @Repository and @Service appropriately annotated.

Also make sure all your packages should be under - aa.bb.cc.*

In your case this setup will resolve your issues.

9 7 4
38,600 points

Related questions

0 votes
2 answers 252 views
252 views
Problem : I have created entities, services and JUnit tests for services using Spring and Hibernate for my project. All of these are working. After that I added spring-mvc to it to make this web application but while trying to make ... follows ..Could not autowire field: public pl.com.radzikowski.webmail.service.IMailManager pl.com.radzikowski.webmail.controller.HomeController.mailManager...
asked Nov 20, 2019 peterlaw 6.9k points
1 vote
1 answer 3.6K views
3.6K views
Problem : When I try to compile my spring project, I always face the below error : Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed I have the ... >1.4.1.RELEASE</version> <relativePath /> <!-- lookup parent from repository --> </parent> . . .
asked Dec 12, 2019 alecxe 7.5k points
0 votes
1 answer 5.5K views
5.5K views
Problem : I am developing the application in Spring, using a Tomcat, Mysql5, Java8... My problem is that I cannot deploy it, due to the "required bean 'entityManagerFactory' not found" problem. I have developed my project with the coworkers but ... a bean named 'entityManagerFactory' that could not be found. Action: Consider defining a bean named 'entityManagerFactory' in your configuration.
asked Jan 25, 2020 jwilliam 3.9k points
0 votes
1 answer 4.7K views
4.7K views
Problem : After executing spring boot with h2 database and JPA i am facing below error org.hibernate.tool.schema.spi.commandacceptanceexception: error executing ddl via jdbc statement
asked Nov 12, 2019 peterlaw 6.9k points
0 votes
1 answer 5 views
5 views
Problem: failed to destroy end point associated with protocolhandler.
asked Feb 17 Ethan ross 1.9k points
0 votes
1 answer 2 views
2 views
Problem: the request sent by the client was syntactically incorrect.
asked Feb 18 Ethan ross 1.9k points
0 votes
1 answer 25 views
25 views
Problem unable to process parts as no multi-part configuration has been provided
asked Feb 9 charles mathews 3.9k points
0 votes
2 answers 634 views
634 views
Problem : I am new to the Spring and JPA, wasted 10 days and no result with the searching on internet. I want to save the object to SQL SERVER, my connection is correct but when I write .flush() I get below exception &ldquo;nested exception is javax.persistence.TransactionRequiredException: no transaction is in progress&rdquo;
asked Jan 21, 2020 jwilliam 3.9k points
0 votes
1 answer 350 views
350 views
Problem : I am new to Spring and JPA I want to save object to SQL SERVER, connection is correct but when I write .flush() I get the exception as below javax.persistence.TransactionRequiredException: no transaction is in progress
asked Oct 22, 2019 peterlaw 6.9k points
0 votes
1 answer 3.7K views
3.7K views
Problem : I am trying to write Spring boot code The Program is running but I am getting following error: This application has no explicit mapping for /error, so you are seeing this as a fallback. How to fix this error?
asked Nov 22, 2019 peterlaw 6.9k points