You can use environment variables in your application.properties file by using the spring.profiles.active property.
In Spring MVC, the @ModelAttribute annotation is used to bind request parameters to method arguments in controller methods.
In Spring, the @Component annotation is used to mark a Java class as a candidate for component scanning. The @Repository annotation is a specialization of @Component for use in the persistence layer.