It’s been a while since I’ve written anything, for lack of time, but I think it’s necessary to remind myself that you can configure the context path of a web application in a very simple way when you build the application.

java -jar app.jar --server.servlet.context-path=/my-custom-context-path

There are more ways to do this programmatically or via annotation, but you should already be collecting code. This way is the simplest and the simple is beautiful 🙂

See you later, good afternoon.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s