I have class MyModel.java
and I'm constructing it using @PostConstruct
.
@ConfigurationProperties(prefix = "test")
public static class MyModel extends Model {
@PostConstruct
private void postConstruct() {
}
}
Now I want to call a method of Model class(contains field and getter setter) say:
сlass Model {
....
//fields and getter setter
public void testValues(){
}
}
Now I want to call testValues()
in @PostContruct
.
How can I call it ?