All Projects → pires → simple-shiro-web-app

pires / simple-shiro-web-app

Licence: other
A simple proof-of-concept of Shiro authentication with JDBC Realm and MySQL.

Programming Languages

CSS
56736 projects

simple-shiro-web-app

A simple proof-of-concept of Shiro authentication with Jetty and JDBC (MySQL) Realm.

Prerequisites

  • JDK 6
  • Maven 3.0.3 or newer

Configure MySQL database

Run the following commands:

mysql -u root -p
create database simple_shiro_web_app;  
grant all privileges on simple_shiro_web_app.* to 'root'@'localhost' identified by '123qwe';
flush privileges;

Now, populate the database with the script provided:

mysql -u root -p123qwe simple_shiro_web_app < pop_db.sql

Test

In order to build a WAR package, run the following command:

mvn clean jetty:run

Point your browser to http://localhost:9090

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].