Cambio clase principal
Some checks failed
Primer flujo de trabajo CI/CD (Build, Test and Push Docker Image) para Ampliación de Entornos de Desarrollo / build-and-push (push) Has been cancelled
Some checks failed
Primer flujo de trabajo CI/CD (Build, Test and Push Docker Image) para Ampliación de Entornos de Desarrollo / build-and-push (push) Has been cancelled
This commit is contained in:
parent
b2d2fc88ff
commit
9bb8c09478
14
pom.xml
14
pom.xml
@ -40,13 +40,13 @@
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- Source: https://mvnrepository.com/artifact/org.mongodb/mongodb-driver-sync -->
|
||||
<dependency>
|
||||
<groupId>org.mongodb</groupId>
|
||||
<artifactId>mongodb-driver-sync</artifactId>
|
||||
<version>5.6.5</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<!-- Source: https://mvnrepository.com/artifact/org.postgresql/postgresql -->
|
||||
<dependency>
|
||||
<groupId>org.postgresql</groupId>
|
||||
<artifactId>postgresql</artifactId>
|
||||
<version>42.7.11</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
|
||||
@ -4,10 +4,10 @@ import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class AppHogwartsSB {
|
||||
public class AppGobiernoSB {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(AppHogwartsSB.class, args);
|
||||
SpringApplication.run(AppGobiernoSB.class, args);
|
||||
|
||||
}
|
||||
|
||||
@ -24,7 +24,7 @@ public class MinisterioService {
|
||||
List<Ministerio> lista = ministerioDAO.obtenerListaMinisterios();
|
||||
|
||||
// Esto provoca error
|
||||
//lista = null;
|
||||
lista = null;
|
||||
|
||||
if (lista == null || lista.isEmpty()) {
|
||||
throw new RuntimeException("No hay miinisterios disponibles");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user