![]() ![]() ![]() Suppose we have a JAR file and application properties file with it and we have 3 different environments dev, QA and prod. Spring has this feature called profiles in order to use your configurations in different environments. Normally we use to inject property one by one, this is best for a single simple application. Binding is either by calling setters on annotated class or if is in use by using constructor parameters. We can add this annotation to the class definition or bean method in Configuration class.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |