Spring Boot Interview Questions and Answers
| Spring vs Spring Boot | NodeJS vs Spring Boot | Spring MVC vs Spring Boot |
Ques 36. What is @pathVariable?
@PathVariable annotation helps you to extract information from the URI directly.
Ques 37. What is the use of profiles in Spring Boot?
Profiles are used to separate various parts of your spring application configuration and make it only available in certain environments.
Ques 38. What is LiveReload in Spring Boot?
LiveReload is a spring-boot-devtools module that includes LiveReload server to trigger a browser refresh when a resource is changed. LiveReload server extensions are available freeware for Firefox, Chrome, and Safari.
Ques 39. What are the major benefits of spring Externalized Configuration?
Externalized Configuration helps to work with the same code in different environments. Developers can use YAML files, properties files, command-line arguments, and environment variables to externalize configuration.
Ques 40. What do you mean by hot-swapping in Spring Boot?
It is a way to reload the changes without restarting Tomcat, or Jetty server. Eclipse and Many other IDEs support bytecode hot swapping. If you make any changes that don’t affect the method signature, it should reload without side effect.