question is related to Spring. I have application.properties
file in my project. I want these values to be used in my service class. Can i get these properties values as a bean in my service class?
class MyServiceClass{
@Autowired
Properties myproperty;
// ....
}
i want to be able to use myproperty. What config changes should be made to wire the application.properties
with my service class?