首先是数据库的创建
第二步在maven项目中导入jar包
pom.xml配置如下
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.hp.shiro</groupId>
<artifactId>Shiro</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>Shiro</name>
<description>Shiro</description>
<dependencies>
<!-- https://mvnrepository.com/artifact/org.apache.shiro/shiro-core -->
<dependency>