• Register
0 votes
69 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 307 views
307 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 5.2K views
5.2K 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 4 views
4 views
Problem: IDE is IDEA Throw the exception When me click install of maven ,but i click run button is success. maven compile is also success. I don't know what i did wrong What this is question ... (AbstractPropertyAccessor.java:75) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1570) ... 42 more
asked Apr 26 sumaiya simi 43.9k points
0 votes
1 answer 43 views
43 views
Problem: HELP! I need help understanding this error: Error creating bean with name 'entitymanagerfactory' defined in class path resource.
asked Mar 6 Wafa Abu Yousef 6.1k points
1 vote
1 answer 3 views
3 views
Problem: Need a solution : Nosuchbeandefinitionexception: no qualifying bean of type.
asked 6 days ago PkGuy 23.5k points
1 vote
1 answer 11 views
11 views
Problem : What does this mean > @Autowired - No qualifying bean of type found for dependency
asked Apr 23 Abik Dey 4k points
0 votes
1 answer 82 views
82 views
Problem : any help with this: Consider defining a bean named 'entitymanagerfactory' in your configuration..
asked Mar 6 Wafa Abu Yousef 6.1k points
0 votes
1 answer 6.6K views
6.6K 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 75 views
75 views
Problem : After executing spring boot with h2 database and JPA i am facing below error, any help: org.hibernate.tool.schema.spi.commandacceptanceexception: error executing ddl via jdbc statement
asked Mar 6 Wafa Abu Yousef 6.1k points
0 votes
1 answer 5.1K views
5.1K 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