5 ms·
Java has moved from XML files to @Annotations now. Most frameworks are providing support for it now, too.
by RyanZAG 14y ago
Java has moved from XML files to @Annotations now. Most frameworks are providing support for it now, too.
- lazyjones 14y agoYou mean they have added @Annotations to XML file editing. Many frameworks still require you to edit XML files too in some places (Maven/Ant/Tomcat config etc.).
- moondowner 14y agoIn the application code, you can use either annotations or XML, or both, it's up to the developer. And regarding editing XML in some other required places - you can use Gradle instead of Maven or Ant (thus no XML files). But that's not the point, to get rid of all XML on your server. The point is that in the application code you are not obliged to use XML.
- cgh 14y agoIf you are doing much beyond simple bean injection - Camel, Quartz, OSGi, etc. - then you will be up to your armpits in XML. But it's not so bad, if you prefer configuration to convention.