Return to site

JAVA 18 NEWS: Simple web server in the JDK #jep408

ยท java

JDK 18 will come with an embedded mini web server.

It will allow to deal with static files from a directory thanks to command line tool: ๐’‹๐’˜๐’†๐’ƒ๐’”๐’†๐’“๐’—๐’†๐’“.

By default, it uses ๐’๐’๐’„๐’‚๐’๐’‰๐’๐’”๐’• and the port 80 and targets the current directory.

The class ๐‘บ๐’Š๐’Ž๐’‘๐’๐’†๐‘ญ๐’Š๐’๐’†๐‘บ๐’†๐’“๐’—๐’†๐’“ coming with it, lets you instantiate that web server, by code:

 This tool will be useful for prototyping, ad-hoc coding, and testing purposes, particularly in educational contexts.

All Posts

Almost doneโ€ฆ

We just sent you an email.ย Please click the link in the email to confirm your subscription!