---
title: "Discussion on \"Building My Own HTTP Server in Java using java.net\" | Hashnode"
description: "Discussion on \"Building My Own HTTP Server in Java using java.net\". When we use Spring Boot, writing an API is surprisingly easy.\n@GetMapping(\"/products\")\npublic List<Product> getProducts() {\n    return productService.getProducts();\n}\n\nBuilding REST APIs with Spring B"
url: "https://hashnode.com/posts/building-my-own-http-server-in-java-using-java-net/6a5a0816acf424c083115deb"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Building My Own HTTP Server in Java using java.net](https://saroj-dev.hashnode.dev/building-my-own-http-server-in-java-using-java-net?utm_source=hashnode&utm_medium=feed)

When we use Spring Boot, writing an API is surprisingly easy. @GetMapping("/products") public List<Product> getProducts() { return productService.getProducts(); } Building REST APIs with Spring B

Jul 17 · 13 min read · saroj-dev.hashnode.dev  
Read the article

## Written by

[Saroj Bist](https://hashnode.com/@saroj-bist)

@saroj-bist · Mumbai, India

  
[View profile](https://hashnode.com/@saroj-bist)

Just a dev trying to make sense of the stack.

I'm Saroj Bist, a self-taught web developer, learning and building with the MERN stack. I started with front-end tools like ReactJS and Tailwind CSS, and slowly stepped into full-stack development, working on real projects and solving real problems. This blog is where I share what I’m learning — from small bugs to full project insights — in a way that helps both me and anyone on a similar path.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
