Criei o projeto no CentOS 9 usando Eclipse.
Java 17 e Spring Boot 3.
Já criei o BD e inseri um registro. Li e alterei.
Criei o projeto server e iniciei o serviço Eureka.
Já consegui fazer a projeto pagamentos se registrar no Eureka.
Porém, depois de alguns ajustes no pagamentos, quando tento iniciar a aplicação, está apersentando o erro abaixo:
2023-07-24T14:59:51.116-03:00 INFO 50678 --- [ restartedMain] o.f.c.internal.license.VersionPrinter : Flyway Community Edition 9.16.3 by Redgate
2023-07-24T14:59:51.117-03:00 INFO 50678 --- [ restartedMain] o.f.c.internal.license.VersionPrinter : See release notes here: https://rd.gt/416ObMi
2023-07-24T14:59:51.117-03:00 INFO 50678 --- [ restartedMain] o.f.c.internal.license.VersionPrinter :
2023-07-24T14:59:51.133-03:00 INFO 50678 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2023-07-24T14:59:51.566-03:00 INFO 50678 --- [ restartedMain] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@4c922180
2023-07-24T14:59:51.569-03:00 INFO 50678 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2023-07-24T14:59:51.612-03:00 INFO 50678 --- [ restartedMain] o.f.c.i.database.base.BaseDatabaseType : Database: jdbc:mysql://localhost:3306/alurafood-pagamento (MySQL 8.0)
2023-07-24T14:59:51.703-03:00 INFO 50678 --- [ restartedMain] o.f.core.internal.command.DbValidate : Successfully validated 1 migration (execution time 00:00.052s)
2023-07-24T14:59:51.734-03:00 INFO 50678 --- [ restartedMain] o.f.core.internal.command.DbMigrate : Current version of schema `alurafood-pagamento`: 1
2023-07-24T14:59:51.736-03:00 INFO 50678 --- [ restartedMain] o.f.core.internal.command.DbMigrate : Schema `alurafood-pagamento` is up to date. No migration necessary.
2023-07-24T14:59:51.854-03:00 INFO 50678 --- [ restartedMain] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
2023-07-24T14:59:51.913-03:00 INFO 50678 --- [ restartedMain] org.hibernate.Version : HHH000412: Hibernate ORM core version 6.2.6.Final
2023-07-24T14:59:51.915-03:00 INFO 50678 --- [ restartedMain] org.hibernate.cfg.Environment : HHH000406: Using bytecode reflection optimizer
2023-07-24T14:59:52.071-03:00 INFO 50678 --- [ restartedMain] o.h.b.i.BytecodeProviderInitiator : HHH000021: Bytecode provider name : bytebuddy
2023-07-24T14:59:52.232-03:00 INFO 50678 --- [ restartedMain] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer
2023-07-24T14:59:52.390-03:00 INFO 50678 --- [ restartedMain] o.h.b.i.BytecodeProviderInitiator : HHH000021: Bytecode provider name : bytebuddy
2023-07-24T14:59:52.623-03:00 INFO 50678 --- [ restartedMain] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2023-07-24T14:59:52.628-03:00 INFO 50678 --- [ restartedMain] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2023-07-24T14:59:52.813-03:00 WARN 50678 --- [ restartedMain] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'pagamentoController': Unsatisfied dependency expressed through field 'pagamentoRepository': Error creating bean with name 'pagamentoRepository' defined in br.com.alurafood.pagamentos.repository.PagamentoRepository defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Not a managed type: class br.com.alurafood.pagamentos.model.Pagamento
2023-07-24T14:59:52.814-03:00 INFO 50678 --- [ restartedMain] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2023-07-24T14:59:52.818-03:00 INFO 50678 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
2023-07-24T14:59:52.832-03:00 INFO 50678 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
2023-07-24T14:59:52.834-03:00 INFO 50678 --- [ restartedMain] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2023-07-24T14:59:52.861-03:00 INFO 50678 --- [ restartedMain] .s.b.a.l.ConditionEvaluationReportLogger :
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2023-07-24T14:59:52.890-03:00 ERROR 50678 --- [ restartedMain] o.s.boot.SpringApplication : Application run failed