SpringBoot Application :
Pros & Cons :
SpringBoot Application creation using spring.io :
SpringBoot Application Annotations :
SpringBoot Application RestApi representation :
SpringBoot Application RestApi with SpringJpa with CRUD operations :
Create
Insert
Update
Delete
SpringBoot Application RestApi with JPA Repository with Relationships :
One to many
Many to one
Many to many
One to one
Spring boot Interview Based Questions
Annotations :
@SpringBootApplication : will take care of everything
@SpringBootConfiguration : will take about the configurations
@EnableAutoConfiguration : it configures the classpath beans
@ComponentScan : will scan all the classes
ex : adding mongo dependency in the pom but beans no need to specify, enable auto configuration will take care.
SpringBoot Console Application :
Diff between SpringBootConfiguration vs EnableAutoConfiguration
@Sterotype :
@Service :
@Controller :
@Componet :
@ResponseBody :
@ResponseEntity :
@Lazy :
IOC vs Dependency Injection :
Earlier we are provind the dependency injection in xml but after spring boot comes its easy to inject the bean using @Autowired.
==> embeded db ==> need to configure the db
SpringProfiling : using Profile we can instantiate the bean to the particular env.
For dev env we can instantiate the few beans for production we can instantiation using spring profiling.
Retry mechanism :
@EnableRetry is used to retry the springboot application. It will retry the calls when exception occurs.
@Retryable(value=RuntimeException.class)
What is the starter dependency of the Spring boot module : web starter, Test starter , Data JPA starter.
- Defining a GraphQL Schema.
- Deciding on how the actual data for a query is fetched
It also works in a much more RPC manner, using named queries and mutations, instead of a standard mandatory set of actions. This works to put the control where it belongs, with the API developer specifying what's possible, and the API consumer specifying what's desired.
- GraphQL Schema
- GraphQL Query Language