Arrumado conversão de dados que impedia a execução do servidor
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
package com.agendaestudantil.config;
|
||||
|
||||
import io.github.cdimascio.dotenv.Dotenv;
|
||||
import io.github.cdimascio.dotenv.DotenvEntry;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
import jakarta.annotation.PostConstruct;
|
||||
import java.util.Map;
|
||||
|
||||
@Configuration
|
||||
public class EnvConfig {
|
||||
@@ -16,8 +16,7 @@ public class EnvConfig {
|
||||
.load();
|
||||
|
||||
if (dotenv != null) {
|
||||
Map<String, String> envVars = (Map<String, String>) dotenv.entries();
|
||||
for (Map.Entry<String, String> entry : envVars.entrySet()) {
|
||||
for (io.github.cdimascio.dotenv.DotenvEntry entry : dotenv.entries()) {
|
||||
System.setProperty(entry.getKey(), entry.getValue());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user