Kommentare zu: Hexagonale Architektur mit Spring Boot [Tutorial] https://www.happycoders.eu/de/software-craftsmanship/hexagonale-architektur-spring-boot/ Wed, 27 Nov 2024 13:59:49 +0000 hourly 1 Von: Herundina https://www.happycoders.eu/de/software-craftsmanship/hexagonale-architektur-spring-boot/#comment-33912 Sun, 01 Sep 2024 19:55:09 +0000 https://www.happycoders.eu/?p=38479#comment-33912 Hi, I am From Brazil.

When running the program it displays this error.
Description:

Field cartRepository in com.arquitetura.SpringAppConfig required a bean of type 'com.arquitetura.application.port.out.persistence.CartRepository' that could not be found.

The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)

Action:

Consider defining a bean of type 'com.arquitetura.application.port.out.persistence.CartRepository' in your configuration.

Here it's my pom.xml in module maven Application:

4.0.0

com.arquitetura
lojaonline
1.0-SNAPSHOT

application

17
17

com.arquitetura
model
${project.version}

org.springframework.boot
spring-boot-maven-plugin

------------------------
and Here my pom.xml in module Adapter;

4.0.0

com.arquitetura
lojaonline
1.0-SNAPSHOT

adapter

com.arquitetura
application
${project.version}

org.springframework.boot
spring-boot-starter-data-jpa

org.springframework.boot
spring-boot-starter-web

org.springframework.boot
spring-boot-devtools
runtime

org.springframework.boot
spring-boot-starter-data-jdbc

org.springframework.boot
spring-boot-starter-validation

com.mysql
mysql-connector-j
runtime

org.springframework.boot
spring-boot-starter-data-jdbc

com.h2database
h2
runtime


org.springframework.boot
spring-boot-maven-plugin

And Here in bootstrap:

4.0.0

com.arquitetura
lojaonline
1.0-SNAPSHOT

bootstrap

com.arquitetura
adapter
${project.version}

com.arquitetura
application
${project.version}

com.arquitetura
model
${project.version}

org.springframework.boot
spring-boot-maven-plugin

- Java.version 21
- maven 3.9.8
- Vscode
Could you Helpe me with APPLICATION FAILED TO START?

]]>