Skip to content

Commit

Permalink
🔖 完善权限管理
Browse files Browse the repository at this point in the history
  • Loading branch information
TyCoding committed Mar 17, 2019
1 parent 6130bd0 commit aa0e291
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 6 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@

**欢迎大家clone下来学习,如果可以,希望能点亮右上角star, fork,给作者一些鼓励**

**线上地址:** []
**线上地址:** [http://39.105.46.235/login](http://39.105.46.235/login)

| 用户名 | 密码 | 备注 |
| --- | --- | --- |
| admin | 123456 | 管理员,拥有所有权限 |
| tycoding | 123456 | 测试账号,可查看所有页面,但无操作权限 |
| tumo | 123456 | 用户管理员 |

## 致谢

Expand Down Expand Up @@ -88,6 +94,8 @@

### 部署

由于一些原因,**线上地址**部署的项目不太完美,请clone到本地运行。

1. 克隆

```
Expand Down
3 changes: 3 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@
<groupId>cn.tycoding</groupId>
<artifactId>permission</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<name>permission</name>
<description>Demo project for Spring Boot</description>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>

Expand Down
9 changes: 8 additions & 1 deletion src/main/java/cn/tycoding/ShiroApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
@MapperScan("cn.tycoding.*.mapper")
public class ShiroApplication {
public class ShiroApplication extends SpringBootServletInitializer {

@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
return builder.sources(ShiroApplication.class);
}

public static void main(String[] args) {
SpringApplication.run(ShiroApplication.class, args);
Expand Down
10 changes: 6 additions & 4 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
server:
port: 8080
tomcat:
uri-encoding: utf-8

spring:
datasource:
Expand Down Expand Up @@ -83,7 +85,7 @@ logging:

# 七牛云
qiniu:
access_key: Access_Key
secret_key: Secret_Key
bucket_name: Bucket_Name
url: bucket url
access_key: ACCESS_KEY
secret_key: SECRET_KEY
bucket_name: BUCKETNAME
url: http://xxx/

0 comments on commit aa0e291

Please sign in to comment.