Code Monk

Tech forum for Java, algorithms & data-structures, Hibernate, RESTful API, Spring framework, Microservices architecture, Interview questions, Python, SDET, Machine learning, DevOps.

File Upload in Spring MVC using RestTemplate with ByteArrayResource & FileSystemResource

Carvia Tech | July 11, 2019 | | 7 views

In this short tutorial we will learn how to do file upload to a spring mvc endpoint using RestTemplate via ByteArrayResource & FileSystemResource. We will be using Spring Boot 2.1.x for this tutorial along with Gradle build script.

Read Article

File upload in RestAssured

Carvia Tech | July 10, 2019 | | 6 views

In this article we will learn how to do file upload to server endpoint using RestAssured library.

Read Article

Basic Authentication using RestAssured

Carvia Tech | July 10, 2019 | | 10 views

In this article we will explore how to access Basic Auth protected resource from Rest Assured testcase, with a coding sample.

Read Article

Installing nginx on macOS Mojave using brew

Carvia Tech | July 10, 2019 | 2 min read | 83 views

Installing nginx with homebrew is very easy on macOS X/Mojave. In this article we will cover nginx installation, configuration and start/stop.

Read Article

Spring Security 5 - There is no PasswordEncoder mapped for the id

Carvia Tech | July 09, 2019 | | 1 views | Spring Boot 2

After migration to Spring Boot 2.1, you may encounter the below error when you try to hit a protected endpoint with username and password. java.lang.IllegalArgumentException There is no PasswordEncoder mapped for the id null

Read Article

Inter-thread communication in Java

Carvia Tech | July 05, 2019 | | 1 views

Inter-thread communication is all about allowing threads to communicate with each other over a shared mutable object.

Read Article

What are different thread states in Java

Carvia Tech | July 05, 2019 | | 0 views

A thread in JVM can have 6 different states as defined in Thread.State enum. At any given time, thread must be in any of these states.

Read Article

Sapient Global Market Java Interview Questions and Coding Exercise

Carvia Tech | July 05, 2019 | 3 min read | 770 views | sapient interviews

top sapient global market java interview questions, core java, interview questions, investment banking, fresher interview

Read Article

Static method synchronization aka Class Lock in Java

Carvia Tech | July 05, 2019 | | 1 views

There is one copy of static data per class, so we only need one lock per class to synchronize static methods. Every class loaded by JVM has a corresponding instance of java.lang.Class representing that class.

Read Article

Top 50 microservices architecture interview questions for Java developers

Carvia Tech | July 04, 2019 | 2 min read | 76 views | microservices-architecture

In this article we will discuss top 50 Spring Microservices interview questions for experienced Java Developers. covered topics are core concepts, oauth2 security, testing microservices, deployment patterns, and best practices.

Read Article

This website uses cookies to ensure you get the best experience on our website. more info