Ao adiocionar runtime 'mysql:mysql-connector-java'... | Fórum | School of Net

Deseja poder participar de nosso fórum e tirar todas as suas dúvidas?
Clique aqui e assine nosso plano de acesso ilimitado. Saiba mais.

por Douglas

1 semana, 6 dias atrás Douglas

Ao adiocionar runtime 'mysql:mysql-connector-java' gera erro na SpringleGradleApplication

Erro ao executar Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/boot/SpringApplication at com.schoolofnet.SpringleGradle.SpringleGradleApplication.main(SpringleGradleApplication.java:10) Caused by: java.lang.ClassNotFoundException: org.springframework.boot.SpringApplication at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 1 more minha dendecies dependencies { implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'org.springframework.boot:spring-boot-starter-web' runtime 'mysql:mysql-conector-java' developmentOnly 'org.springframework.boot:spring-boot-devtools' testImplementation('org.springframework.boot:spring-boot-starter-test') { exclude group: 'org.junit.vintage', module: 'junit-vintage-engine' } } Erro resolvido

1 Respostas