Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

演示

简单示例,无页面

运行

  1. IDE 导入项目后,运行: org.hswebframework.web.example.simple.SpringBootExample.main

  2. maven 先安装 hsweb-framework

 /hsweb-framework $ mvn install
 /hsweb-framework $ cd hsweb-examples/hsweb-examples-simple
 /hsweb-examples-simple $ mvn spring-boot:run
  
  1. 测试 使用Postman之类的http测试工具请求:
  # 登录
  HTTP POST : http://localhost:8081/authorize/login?username=admin&password=admin
  # 测试数据权限控制-查询
  HTTP GET :  http://localhost:8081/test/testQuery

如果不想使用权限控制,请注释掉 pom.xml的

<dependency>
    <groupId>org.hswebframework.web</groupId>
    <artifactId>hsweb-authorization-shiro</artifactId>
    <version>${project.version}</version>
</dependency>