File tree 3 files changed +15
-25
lines changed
samples/featured-authorizationserver/src/main
3 files changed +15
-25
lines changed Original file line number Diff line number Diff line change 30
30
* @since 1.1
31
31
*/
32
32
@ Controller
33
- public class DeviceErrorController implements ErrorController {
33
+ public class DefaultErrorController implements ErrorController {
34
34
35
35
@ RequestMapping ("/error" )
36
36
public ModelAndView handleError (HttpServletRequest request ) {
Original file line number Diff line number Diff line change 3
3
< head >
4
4
< meta charset ="utf-8 ">
5
5
< meta name ="viewport " content ="width=device-width, initial-scale=1, shrink-to-fit=no ">
6
- < title > Device Grant Example</ title >
6
+ < title > Spring Security Example</ title >
7
7
< link rel ="stylesheet " href ="/webjars/bootstrap/css/bootstrap.css " th:href ="@{/webjars/bootstrap/css/bootstrap.css} " />
8
8
< link rel ="stylesheet " href ="/assets/css/style.css " th:href ="@{/assets/css/style.css} " />
9
9
</ head >
10
10
< body >
11
- < div class ="jumbotron ">
12
- < div class ="container ">
13
- < div class ="row ">
14
- < div class ="col-md-8 ">
15
- < h2 > Access Denied</ h2 >
16
- < p > You have denied access. Please return to your device to continue.</ p >
17
- </ div >
18
- < div class ="col-md-4 ">
19
- < img src ="https://cdn.pixabay.com/photo/2017/07/03/15/20/technology-2468063_1280.png " class ="img-responsive " alt ="Devices ">
20
- </ div >
11
+ < div class ="container ">
12
+ < div class ="row ">
13
+ < div class ="col-md-8 ">
14
+ < h2 > Access Denied</ h2 >
15
+ < p > You have denied access.</ p >
21
16
</ div >
22
17
</ div >
23
18
</ div >
24
19
</ body >
25
- </ html >
20
+ </ html >
Original file line number Diff line number Diff line change 3
3
< head >
4
4
< meta charset ="utf-8 ">
5
5
< meta name ="viewport " content ="width=device-width, initial-scale=1, shrink-to-fit=no ">
6
- < title > Device Grant Example</ title >
6
+ < title > Spring Security Example</ title >
7
7
< link rel ="stylesheet " href ="/webjars/bootstrap/css/bootstrap.css " th:href ="@{/webjars/bootstrap/css/bootstrap.css} " />
8
8
< link rel ="stylesheet " href ="/assets/css/style.css " th:href ="@{/assets/css/style.css} " />
9
9
</ head >
10
10
< body >
11
- < div class ="jumbotron ">
12
- < div class ="container ">
13
- < div class ="row ">
14
- < div class ="col-md-8 ">
15
- < h2 > Error</ h2 >
16
- < p th:text ="${message} "> </ p >
17
- </ div >
18
- < div class ="col-md-4 ">
19
- < img src ="https://cdn.pixabay.com/photo/2017/07/03/15/20/technology-2468063_1280.png " class ="img-responsive " alt ="Devices ">
20
- </ div >
11
+ < div class ="container ">
12
+ < div class ="row ">
13
+ < div class ="col-md-8 ">
14
+ < h2 > Error</ h2 >
15
+ < p th:text ="${message} "> </ p >
21
16
</ div >
22
17
</ div >
23
18
</ div >
24
19
</ body >
25
- </ html >
20
+ </ html >
You can’t perform that action at this time.
0 commit comments