How to generate heavy CPU load

Sometimes you need to generate heavy CPU load in your app for testing purposes. if you are using Spring, it will be very convenient to run multi-threaded password hashing: That code is non-blocking, so your program are not going to pause. If you want to pause, you may add the line to the end of […]

READ MORE

Send JSON as parameter in url using RestTemplate

If you try to send the json as a parameter in url via Spring’s RestTemplate, you will encounter the following error: In order to solve this problem, you need to: Encode the URL yourself Disable url encoding at the RestTemplate level. Let’s do that: Many thanks to Chris Liu for showing how to disable url […]

READ MORE