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
8
pom.xml
8
pom.xml
@ -40,11 +40,11 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
<!-- Source: https://mvnrepository.com/artifact/org.mongodb/mongodb-driver-sync -->
|
<!-- Source: https://mvnrepository.com/artifact/org.postgresql/postgresql -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.mongodb</groupId>
|
<groupId>org.postgresql</groupId>
|
||||||
<artifactId>mongodb-driver-sync</artifactId>
|
<artifactId>postgresql</artifactId>
|
||||||
<version>5.6.5</version>
|
<version>42.7.11</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|||||||
@ -4,10 +4,10 @@ import org.springframework.boot.SpringApplication;
|
|||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
public class AppHogwartsSB {
|
public class AppGobiernoSB {
|
||||||
|
|
||||||
public static void main(String[] args) {
|
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();
|
List<Ministerio> lista = ministerioDAO.obtenerListaMinisterios();
|
||||||
|
|
||||||
// Esto provoca error
|
// Esto provoca error
|
||||||
//lista = null;
|
lista = null;
|
||||||
|
|
||||||
if (lista == null || lista.isEmpty()) {
|
if (lista == null || lista.isEmpty()) {
|
||||||
throw new RuntimeException("No hay miinisterios disponibles");
|
throw new RuntimeException("No hay miinisterios disponibles");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user