We’ll also be using Apache Maven as our build tool, but of course this is not required to use Apache Shiro. This tutorial requires Java 1.6 or later. Even though we're creating a simple app for this tutorial, know that the same usage patterns apply no matter how your application is created or where it is deployed. In this simple example, we’ll create a very simple command-line application that will run and quickly exit, just so you can get a feel for Shiro’s API.Īpache Shiro was designed from day one to support any application - from the smallest command-line applications to the largest clustered web applications. The source distribution is available from the Download page. In Apache Shiro’s source distribution’s samples/quickstart directory.
If you don’t want to actually edit files as you follow this tutorial, you can obtain a nearly identical sample application and reference it as you go. We’ll discuss Shiro’s core concepts along the way to help familiarize you with Shiro’s design and API. If you’re new to Apache Shiro, this short tutorial will show you how to set up an initial and very simple application secured by Apache Shiro. Read More > Apache Shiro Tutorial Your First Apache Shiro Application Step-by-step tutorial for securing a web application with Shiro. Try Apache Shiro for yourself in under 10 minutes. Resources, guides and tutorials for new Shiro users.