1

How can I re-write the following annotation-based configured class:

@ConfigurationProperties(prefix = "app")
class MyConfig {
  private String username;
  private String password;
}

To the XML-based configured class? Specifically, what is the equivalent of @ConfigurationProperties in the xml configuration?

Avaldor
  • 317
  • 2
  • 8
  • I’m pretty sure you can’t do this using XML configuration. Not sure why you’d want to either, hardly anyone uses XML config in Spring nowadays. – PaulNUK May 18 '21 at 16:52
  • Not every project is a new project though. – Avaldor May 19 '21 at 09:19

0 Answers0