Open in app

Sign In

Write

Sign In

Jay Kim
Jay Kim

93 Followers

Home

About

Aug 11

[Spring Boot] Traditional Deployment on Apache Tomcat using Spring Boot WAR

This article covers how to create a Spring Boot application which can output a war file and how to deploy on Apache Tomcat. This application is based on Spring Boot version 3 & Java 17 with Apache Tomcat 10. Apache Tomcat 10 can be downloaded from here. Project Setup Note that gradle…

Spring Boot

3 min read

[Spring Boot] Traditional Deployment on Apache Tomcat using Spring Boot WAR
[Spring Boot] Traditional Deployment on Apache Tomcat using Spring Boot WAR
Spring Boot

3 min read


Aug 9

[Study Notes] GraphQL With Spring WebFlux — Basics

GraphQL Basics — Scalar Types Int Float String Boolean ID (Unique value serialized as String) Non-nullable fields are marked with !. Collection Types [Int]: List<Integer> Special Types Query: Get Mutation: Post, Put, Delete, Patch Subscription: SSE, WebSockets Enum Enums don’t always have to be mapped to Java Enum. They could be mapped to Java Strings as well. enum Brand {…

Spring Webflux

2 min read

Spring Webflux

2 min read


Aug 9

[Spring Boot] How to use OpenAI ChatGPT APIs in a Spring Boot Application

Chat Completions API is described as follows (link): Chat models take a list of messages as input and return a model-generated message as output. Although the chat format is designed to make multi-turn conversations easy, it’s just as useful for single-turn tasks without any conversation. There are libraries available to…

Spring Boot

3 min read

[Spring Boot] How to use OpenAI ChatGPT APIs in a Spring Boot Application
[Spring Boot] How to use OpenAI ChatGPT APIs in a Spring Boot Application
Spring Boot

3 min read


Jul 22

[Spring Boot] Using WireMock and MockWebServer for Spring WebFlux Integration Tests

This article covers how to configure WireMock and MockWebServer for a Spring WebFlux application to stub for any external APIs the application might need. Implementation Currently, WebClient is used for calling the external APIs. @Configuration public class HttpProxyConfiguration { @Value("${tracker.url}") private String trackerUrl…

Spring Boot

3 min read

Spring Boot

3 min read


Jul 22

[Gradle] Creating a new source set for Integration Test using Kotlin DSL

Here is the motivation on why a new source set was added: Have a source directory to differentiate from unit tests and integration tests. Have an ability to run unit tests and integration tests at different stages as we focus highly on unit tests when working on a feature. …

Spring Boot

1 min read

Spring Boot

1 min read


Jul 22

[Spring Boot] How to solve WebClient Connection reset by peer error

I had a requirement to fetch user data from an external system. It was implemented using WebClient as part of declarative http client. Interestingly, the very first request after opening the application on a new browser tab returned Connection reset by peer error. This issue was solved by disabling keep-alive…

Spring Boot

1 min read

Spring Boot

1 min read


Jun 20

[Spring Boot] Declarative HTTP Clients in Spring MVC and Spring WebFlux

Introduction When I first learned about spring-cloud-openfeign, I found it very appealing. Because it supported some annotations from spring-mvc, it was easy to learn. In addition to that, one application can make HTTP calls with minimal efforts: which is to add a dependency, create a Java interface, and annotate appropriately. …

Spring Boot 3

4 min read

Spring Boot 3

4 min read


Jun 19

[React] Auto resizing Textarea

Once I was given with the following acceptance criteria: Do not show vertical scroll bar within the textarea Height of the text area should only resize depending on the input value Textarea has a minimum height Implementation import { useEffect, useRef, useState } from "react"; import "./styles.css"; export default function App() {…

React

1 min read

React

1 min read


Jun 7

[Spring Boot] Configure TestContainers in your test code this way

Embedded H2 database is an excellent stepping stone for writing test code against repository module when starting a new project. In Spring Boot, with @DataJpaTest, I don’t have to worry about the connection information and Data Definition Language (DDL) because it will scan your entities and create tables for you. …

Spring Boot

4 min read

Spring Boot

4 min read


Jun 1

[Docker] Docker Compose example for Kafka, Zookeeper, and Schema Registry

1 Kafka Broker Setup version: '3' services: zookeeper: image: confluentinc/cp-zookeeper:latest container_name: zookeeper environment: ZOOKEEPER_CLIENT_PORT: 2181 ZOOKEEPER_TICK_TIME: 2000 ports: - "2181:2181" schema-registry: image: confluentinc/cp-schema-registry:latest…

Docker

2 min read

Docker

2 min read

Jay Kim

Jay Kim

93 Followers

https://www.linkedin.com/in/jaesik-kim-706b4a84

Following
  • Vikas Taank

    Vikas Taank

  • Kentaro

    Kentaro

  • Satya

    Satya

  • Ragunath Rajasekaran

    Ragunath Rajasekaran

  • Yoo Young-mo

    Yoo Young-mo

See all (29)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams