Cliff Berg
Jan 28, 2023

--

Having it all in one line is not good programming style.

Here's a very short web server in a few lines, in Java:

import static spark.Spark.*;

public class MyService {

public static void main(String[] args) {

get("/", (req, res) -> "MyService");

}}

--

--

Cliff Berg
Cliff Berg

Written by Cliff Berg

Author and leadership consultant, IT entrepreneur, physicist — LinkedIn profile: https://www.linkedin.com/in/cliffberg/

Responses (1)