My .env contains
GOOD_BOY=Fluffy
NOT_SO_GOOD=Killer
I'm accessing it with
public class KeyLoaderListener implements ServletContextListener {
private ServletContext context = null;
private Dotenv dotenv;
public KeyLoaderListener() {
this.dotenv = Dotenv.load(); // Line 30 where error occurs
}
...
}
And getting this error
java.lang.NoSuchMethodError: java.lang.String.isBlank()Z
at io.github.cdimascio.dotenv.internal.DotenvParser.parse(DotenvParser.java:33)
at io.github.cdimascio.dotenv.DotenvBuilder.load(DotenvBuilder.java:81)
at io.github.cdimascio.dotenv.Dotenv.load(Dotenv.java:33)
at com.mytest.KeyLoaderListener.<init>(KeyLoaderListener.java:30)
My .env contains
I'm accessing it with
And getting this error