I have created a spring-boot application with a Configuration.properties file in the classpath. But when i package it and run the application I get the error - "Configuration.properties (The system cannot find the file specified)." Invoked it in the following method : public static Properties readProperties() throws IOException {
FileReader reader=new FileReader("Configuration.properties");
Properties p=new Properties();
p.load(reader);
return p;
I am new to spring,spring-boot.Is there a way to give the values inside application.properties(inside resources folder) of the spring-boot app. Or why does the properties file I have created doesnt go into the jar(upon packaging). Can someone please help.
Regards, Albin