You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a real world loading in a war the path set in the sample is wrong wand can be confusing for beginner.
Since we can not rely on the runtime path in server we should declare the folder at runtime.
Example:
final Properties properties = new Properties();
properties.load(AppModule.class.getResourceAsStream("/datamaintain.properties"));
String scripts = AppModule.class.getResource("/scripts/").getFile();
properties.put("scan.path", scripts);
The text was updated successfully, but these errors were encountered:
In a real world loading in a war the path set in the sample is wrong wand can be confusing for beginner.
Since we can not rely on the runtime path in server we should declare the folder at runtime.
Example:
The text was updated successfully, but these errors were encountered: