DEV Community

Cover image for Spring Web Console: Execute Groovy scripts directly in your browser with access to the Spring context
John
John

Posted on

Spring Web Console: Execute Groovy scripts directly in your browser with access to the Spring context

Hey folks!

I built a small library that lets you execute Groovy scripts right from your browser inside a running Spring Boot app — with full access to your Spring beans.

It’s super easy to set up: just add the dependency and run your app. You’ll get a web-based console where you can explore, debug, and experiment with your application using Groovy scripts.

Some features:

  • Plug in your own script storage
  • Optional interceptors
  • Spring Security integration
  • Compiler customization
  • ...and more

This idea came from a past job, where we used something similar for applying dynamic hot-fixes and experimenting with complex logic. It turned out to be incredibly useful for debugging and testing — so I decided to open-source my own version.

It’s probably not something you'd want to run in production — but for development and internal use, it can be a great tool.

If that sounds interesting, I’d love to hear your feedback! Github

Heroku

Built for developers, by developers.

Whether you're building a simple prototype or a business-critical product, Heroku's fully-managed platform gives you the simplest path to delivering apps quickly — using the tools and languages you already love!

Learn More

Top comments (0)

👋 Kindness is contagious

Value this insightful article and join the thriving DEV Community. Developers of every skill level are encouraged to contribute and expand our collective knowledge.

A simple “thank you” can uplift someone’s spirits. Leave your appreciation in the comments!

On DEV, exchanging expertise lightens our path and reinforces our bonds. Enjoyed the read? A quick note of thanks to the author means a lot.

Okay