The Die Hard Water Jug Riddle (Solved)
This riddle is from famous Die Hard movie where Bruce Willis and Jackson have to diffuse a bomb by placing exactly 4 gallon water on a scale using 3 gallon and 5 gallon water jug.
This riddle is from famous Die Hard movie where Bruce Willis and Jackson have to diffuse a bomb by placing exactly 4 gallon water on a scale using 3 gallon and 5 gallon water jug.
The 2 Eggs and 100 Floors problem is frequently asked in interview to evaluate candidate’s understanding on linear search and binary search. I have tried to explain this problem as easy as possible.
The 25 Horses 5 Tracks Problem is a famous Google interview question that has been asked in many companies to evaluate candidate’s analytical ability and problem solving approach.
Burning Rope Puzzle comes under basic puzzles asked in the interview.
The legend says that this problem was created by Albert Einstein in the last century. Einstein said that only 2% of the world could solve it.
This is a pure mathematical puzzle which evaluate your ability to solve maths equation. This is a great problem for building number sense.
Swagger library is useful if you are creating REST services in spring boot web application. Swagger user interface allows you to view REST services and execute GET, POST, PUT, DELETE HTTP endpoints. This is helpful since you do not need to use Postman or some other tool to test REST Apis.
Follow these steps to configure swagger in your spring boot application:-
Spring boot application comes with default banner which shows up first when you start your application.
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.1.3.RELEASE)
You can replace above banner with your self made custom banner in following two easy steps:-
Spring Boot Application converts any command line arguments starting with --, such as --spring.profiles.active=dev to a property by default and adds them to the Spring Environment. Command line properties always take precedence over other property sources.
If you do not want command line properties to be added to the Environment, you can disable them from SpringBootApplication main method as follows:-
Spring boot web application using embedded server by default runs on port 8080. Following are the ways to change default server port from 8080 to say 9090
Follow any of the given five ways to change server port:-