1.

Can you create a custom Spring Boot starter?

Answer»

Yes, we can create our own custom starters. For instance, if we have an internal LIBRARY for USE within the organization which is used ACROSS multiple PROJECTS. Then it would be a good practice to create a starter for it and to be used in Spring Boot CONTEXT. These starters enable developers to avoid lengthy configuration and quickly jumpstart their development by the use of simple annotations. To create our own custom starter, we require to create an auto-configuration class with an auto-configure module and a starter module which will bring all required dependencies using pom.xml or build.gradle. Spring Boot custom starter have certain guidelines for the naming convention. They should not start with Spring Boot and ideally, have a name like “name-spring-boot-starter”.



Discussion

No Comment Found