spring boot

Showing posts with label spring boot. Show all posts
Showing posts with label spring boot. Show all posts

Bean scopes in Spring Framework


Spring Bean scopesSet up the scopeThe @Scope annotation can be used@Scope("singleton")There are 6 scopes are available in the application contextsingleton This is the default scope.The same object is...

Dependency injection in Spring Boot


Dependency injection What is Dependency injection?Dependency injection is a form of the IoC containerIt is just passing dependencies to other objects or frameworks.Dependency injection allows you to...

jar vs war in Spring Boot


 Use jar not warIf you run mvn clean install in Spring Boot, you will get a fat jar file.It contains everything like dependencies, embedded web server... etc.You can just run java -jar jarFile in a JVM, the default is Tomcat embedded server or you can use Jetty.You don't need any web server or...