Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5059c08

Browse files
依赖修改
1 parent 179de42 commit 5059c08

File tree

94 files changed

+6438
-20
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+6438
-20
lines changed

‎pom.xml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
55

66
<groupId>com.study</groupId>
@@ -48,6 +48,16 @@
4848
<artifactId>pagehelper-spring-boot-starter</artifactId>
4949
<version>1.1.0</version>
5050
</dependency>
51+
<dependency>
52+
<groupId>tk.mybatis</groupId>
53+
<artifactId>mapper-spring-boot-starter</artifactId>
54+
<version>1.1.1</version>
55+
</dependency>
56+
<dependency>
57+
<groupId>org.apache.shiro</groupId>
58+
<artifactId>shiro-spring</artifactId>
59+
<version>1.3.2</version>
60+
</dependency>
5161
<dependency>
5262
<groupId>com.alibaba</groupId>
5363
<artifactId>druid</artifactId>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package com.study.config.shiro;
2+
3+
import org.apache.shiro.authc.AuthenticationException;
4+
import org.apache.shiro.authc.AuthenticationInfo;
5+
import org.apache.shiro.authc.AuthenticationToken;
6+
import org.apache.shiro.authz.AuthorizationInfo;
7+
import org.apache.shiro.realm.AuthorizingRealm;
8+
import org.apache.shiro.subject.PrincipalCollection;
9+
10+
/**
11+
* Created by yangqj on 2017年4月21日.
12+
*/
13+
public class MyShiroRealm extends AuthorizingRealm {
14+
15+
@Override
16+
protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principalCollection) {
17+
return null;
18+
}
19+
20+
@Override
21+
protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken authenticationToken) throws AuthenticationException {
22+
return null;
23+
}
24+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package com.study.controller;
2+
3+
import org.springframework.stereotype.Controller;
4+
import org.springframework.web.bind.annotation.RequestMapping;
5+
import org.springframework.web.bind.annotation.RequestMethod;
6+
7+
import javax.servlet.http.HttpServletRequest;
8+
import java.util.Map;
9+
10+
/**
11+
* Created by yangqj on 2017年4月21日.
12+
*/
13+
@Controller
14+
public class HomeController {
15+
@RequestMapping(value="/login",method= RequestMethod.GET)
16+
public String login(){
17+
return "login";
18+
}
19+
20+
@RequestMapping(value="/login",method=RequestMethod.POST)
21+
public String login(HttpServletRequest request, Map<String, Object> map){
22+
return "";
23+
}
24+
25+
}

‎src/main/java/com/study/controller/TestController.java

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.study.mapper;
2+
3+
import com.study.model.Resources;
4+
import com.study.util.MyMapper;
5+
6+
public interface ResourcesMapper extends MyMapper<Resources> {
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.study.mapper;
2+
3+
import com.study.model.Role;
4+
import com.study.util.MyMapper;
5+
6+
public interface RoleMapper extends MyMapper<Role> {
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.study.mapper;
2+
3+
import com.study.model.RoleResources;
4+
import com.study.util.MyMapper;
5+
6+
public interface RoleResourcesMapper extends MyMapper<RoleResources> {
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.study.mapper;
2+
3+
import com.study.model.User;
4+
import com.study.util.MyMapper;
5+
6+
public interface UserMapper extends MyMapper<User> {
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.study.mapper;
2+
3+
import com.study.model.UserRole;
4+
import com.study.util.MyMapper;
5+
6+
public interface UserRoleMapper extends MyMapper<UserRole> {
7+
}
Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
package com.study.model;
2+
3+
import javax.persistence.*;
4+
5+
public class Resources {
6+
@Id
7+
@GeneratedValue(strategy = GenerationType.IDENTITY)
8+
private Integer id;
9+
10+
/**
11+
* 资源名称
12+
*/
13+
private String name;
14+
15+
/**
16+
* 资源key
17+
*/
18+
@Column(name = "resKey")
19+
private String reskey;
20+
21+
/**
22+
* 资源url
23+
*/
24+
@Column(name = "resUrl")
25+
private String resurl;
26+
27+
/**
28+
* 资源类型 1:菜单 2:按钮
29+
*/
30+
private Integer type;
31+
32+
/**
33+
* 父资源
34+
*/
35+
@Column(name = "parentId")
36+
private Integer parentid;
37+
38+
/**
39+
* 排序
40+
*/
41+
private Integer sort;
42+
43+
/**
44+
* @return id
45+
*/
46+
public Integer getId() {
47+
return id;
48+
}
49+
50+
/**
51+
* @param id
52+
*/
53+
public void setId(Integer id) {
54+
this.id = id;
55+
}
56+
57+
/**
58+
* 获取资源名称
59+
*
60+
* @return name - 资源名称
61+
*/
62+
public String getName() {
63+
return name;
64+
}
65+
66+
/**
67+
* 设置资源名称
68+
*
69+
* @param name 资源名称
70+
*/
71+
public void setName(String name) {
72+
this.name = name;
73+
}
74+
75+
/**
76+
* 获取资源key
77+
*
78+
* @return resKey - 资源key
79+
*/
80+
public String getReskey() {
81+
return reskey;
82+
}
83+
84+
/**
85+
* 设置资源key
86+
*
87+
* @param reskey 资源key
88+
*/
89+
public void setReskey(String reskey) {
90+
this.reskey = reskey;
91+
}
92+
93+
/**
94+
* 获取资源url
95+
*
96+
* @return resUrl - 资源url
97+
*/
98+
public String getResurl() {
99+
return resurl;
100+
}
101+
102+
/**
103+
* 设置资源url
104+
*
105+
* @param resurl 资源url
106+
*/
107+
public void setResurl(String resurl) {
108+
this.resurl = resurl;
109+
}
110+
111+
/**
112+
* 获取资源类型 1:菜单 2:按钮
113+
*
114+
* @return type - 资源类型 1:菜单 2:按钮
115+
*/
116+
public Integer getType() {
117+
return type;
118+
}
119+
120+
/**
121+
* 设置资源类型 1:菜单 2:按钮
122+
*
123+
* @param type 资源类型 1:菜单 2:按钮
124+
*/
125+
public void setType(Integer type) {
126+
this.type = type;
127+
}
128+
129+
/**
130+
* 获取父资源
131+
*
132+
* @return parentId - 父资源
133+
*/
134+
public Integer getParentid() {
135+
return parentid;
136+
}
137+
138+
/**
139+
* 设置父资源
140+
*
141+
* @param parentid 父资源
142+
*/
143+
public void setParentid(Integer parentid) {
144+
this.parentid = parentid;
145+
}
146+
147+
/**
148+
* 获取排序
149+
*
150+
* @return sort - 排序
151+
*/
152+
public Integer getSort() {
153+
return sort;
154+
}
155+
156+
/**
157+
* 设置排序
158+
*
159+
* @param sort 排序
160+
*/
161+
public void setSort(Integer sort) {
162+
this.sort = sort;
163+
}
164+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /