Olá, tentei importar o projeto completo do curso pelo link disponibilizado na aula, quando tento executar o código aparece o seguinte erro:
"C:\Program Files\Java\jdk-17\bin\java.exe" ....
2023-05-17T14:38:03.203-03:00 INFO 16852 --- [ restartedMain] med.voll.api.ApiApplication : Starting ApiApplication using Java 17.0.7 on Renan with PID 16852 (D:\Programação\Java\Aplicações\Springboot\2770-spring-boot-aula_5\target\classes started by renan in D:\Programação\Java\Aplicações\Springboot\2770-spring-boot-aula_5)
2023-05-17T14:38:03.206-03:00 INFO 16852 --- [ restartedMain] med.voll.api.ApiApplication : No active profile set, falling back to 1 default profile: "default"
2023-05-17T14:38:03.273-03:00 INFO 16852 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
2023-05-17T14:38:03.273-03:00 INFO 16852 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
2023-05-17T14:38:04.322-03:00 INFO 16852 --- [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2023-05-17T14:38:04.445-03:00 INFO 16852 --- [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 98 ms. Found 3 JPA repository interfaces.
2023-05-17T14:38:05.496-03:00 INFO 16852 --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2023-05-17T14:38:05.513-03:00 INFO 16852 --- [ restartedMain] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2023-05-17T14:38:05.513-03:00 INFO 16852 --- [ restartedMain] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.0.23]
2023-05-17T14:38:05.635-03:00 INFO 16852 --- [ restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2023-05-17T14:38:05.637-03:00 INFO 16852 --- [ restartedMain] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 2360 ms
2023-05-17T14:38:05.860-03:00 INFO 16852 --- [ restartedMain] o.f.c.internal.license.VersionPrinter : Flyway Community Edition 9.3.1 by Redgate
2023-05-17T14:38:05.860-03:00 INFO 16852 --- [ restartedMain] o.f.c.internal.license.VersionPrinter : See what's new here: https://flywaydb.org/documentation/learnmore/releaseNotes#9.3.1
2023-05-17T14:38:05.860-03:00 INFO 16852 --- [ restartedMain] o.f.c.internal.license.VersionPrinter :
2023-05-17T14:38:05.873-03:00 INFO 16852 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2023-05-17T14:38:06.322-03:00 INFO 16852 --- [ restartedMain] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@4fe5778
2023-05-17T14:38:06.323-03:00 INFO 16852 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2023-05-17T14:38:06.372-03:00 INFO 16852 --- [ restartedMain] o.f.c.i.database.base.BaseDatabaseType : Database: jdbc:mysql://localhost/vollmed_api (MySQL 8.0)
2023-05-17T14:38:06.468-03:00 ERROR 16852 --- [ restartedMain] o.s.b.web.embedded.tomcat.TomcatStarter : Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'securityFilter': Unsatisfied dependency expressed through field 'repository': Error creating bean with name 'usuarioRepository' defined in med.voll.api.domain.usuario.UsuarioRepository defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Cannot resolve reference to bean 'jpaSharedEM#0' while setting bean property 'entityManager'
2023-05-17T14:38:06.508-03:00 INFO 16852 --- [ restartedMain] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2023-05-17T14:38:06.514-03:00 WARN 16852 --- [ restartedMain] o.a.c.loader.WebappClassLoaderBase : The web application [ROOT] appears to have started a thread named [HikariPool-1 housekeeper] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.base@17.0.7/jdk.internal.misc.Unsafe.park(Native Method)...
Tentei atualizar no pom.xml a versão do Spring para 3.0.6 e também nas dependências o mysql para com.mysql e mysql-connector-j, porém quando faço essa alteração o método .antMatchers da classe SecurityConfigurations para de compilar.
Alguém enfrentou o mesmo problema?
Obrigado