Spring Boot自定义Repository遇UnsatisfiedDependencyException问题求助
Spring Boot UnsatisfiedDependencyException After Adding Custom Spring Data Repository Method
Hey folks, I've been working through a tutorial to add custom functionality to a Spring Data Repository in my Spring Boot project, but I keep hitting an UnsatisfiedDependencyException when running the app via the command line.
Here's the breakdown of what's happening:
- The error gets triggered when this line executes:
System.out.println("============"+customerService.getListTransactionByCustomer()); - My service layer method calls the custom repository method like this:
public String getListTransactionByCustomer (){ return customerRepository.getAllTransaction(); } - Even when I simplify the custom repository implementation to just return a hardcoded string (no actual database logic involved), the exception still pops up.
This project is purely for learning, so I'm looking for actionable advice to resolve this dependency issue. My source code is hosted on GitHub.
I'd be grateful for any tips or troubleshooting steps you can share!
内容的提问来源于stack exchange,提问作者Beni kurniawan
相关产品推荐
相关产品推荐

