Commit 41f60556 authored by duanledexianxianxian's avatar duanledexianxianxian 😁

init

parent da556397
<?xml version="1.0" encoding="UTF-8"?>
<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">
<parent>
<artifactId>demo-parent</artifactId>
<groupId>com.duanledexianxianxian.demo</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>auth-server</artifactId>
<dependencies>
<!-- 注意是starter,自动配置 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<!-- 不是starter,手动配置 -->
<dependency>
<groupId>org.springframework.security.oauth</groupId>
<artifactId>spring-security-oauth2</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!-- 将token存储在redis中 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
</dependencies>
</project>
\ No newline at end of file
package com.duanledexianxianxian.demo.auth.server.config;
/**
* @author duanledexianxianxian
* @date 2020/6/29 0:24
* @since 1.0.0
*/
public class OAuth2ServerConfig {
}
package com.duanledexianxianxian.demo.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class HomeController {
@GetMapping("/")
public String goRoot() {
return "/test/index.html";
}
@GetMapping("/test")
public String goTest() {
return "/test/index.html";
}
@GetMapping("/test1")
public String goTest1() {
return "/test1/index.html";
}
@GetMapping("/test2")
public String goTest2() {
return "/test2/index.html";
}
}
package com.duanledexianxianxian.demo.controller;
import com.duanledexianxianxian.demo.domain.model.query.MenuForm;
import com.duanledexianxianxian.demo.service.IMenuService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
/**
* 菜单接口
*
* @author duanledexianxianxian
* @since 2020 -03-19
*/
@RestController
@RequestMapping("/api/v1/menus")
@Slf4j
public class MenuController {
/**
* The Menu service.
*/
@Autowired
private IMenuService menuService;
/**
* 添加菜单
*
* @param form 菜单表单
* @return the long
*/
@PostMapping
public Long addMenu(@RequestBody MenuForm form) {
return menuService.addMenu(form);
}
/**
* 编辑菜单
*
* @param form 菜单表单
* @return the long
*/
@PutMapping
public Boolean editMenu(@RequestBody MenuForm form) {
return menuService.editMenu(form);
}
/**
* 编辑菜单
*
* @param menuId 菜单编码
* @return the long
*/
@DeleteMapping("/{menuId}")
public Boolean deleteMenu(@PathVariable("menuId") Long menuId) {
return menuService.deleteMenu(menuId);
}
}
package com.duanledexianxianxian.demo.controller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.duanledexianxianxian.demo.common.util.BeanUtils;
import com.duanledexianxianxian.demo.domain.dto.UserDTO;
import com.duanledexianxianxian.demo.domain.model.query.UserForm;
import com.duanledexianxianxian.demo.domain.model.query.UserQuery;
import com.duanledexianxianxian.demo.domain.model.vo.UserDetailVO;
import com.duanledexianxianxian.demo.domain.model.vo.UserVO;
import com.duanledexianxianxian.demo.service.IUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.CollectionUtils;
import org.springframework.web.bind.annotation.*;
/**
* 用户接口
*
* @author duanledexianxianxian
* @since 2020 -03-19
*/
@RestController
@RequestMapping("/api/v1/users")
@Slf4j
public class UserController {
/**
* The Menu service.
*/
@Autowired
private IUserService userService;
/**
* 用户分页列表查询
*
* @param query the query
* @return the long
*/
@GetMapping
public IPage<UserVO> getUserListPage(UserQuery query) {
IPage page = userService.getUserListPage(query);
if (page != null && !CollectionUtils.isEmpty(page.getRecords())) {
page.setRecords(BeanUtils.copyList(page.getRecords(), UserVO.class));
}
return page;
}
/**
* 获取用户详情
*
* @param userId the user id
* @return the user menu list
*/
@GetMapping("/{userId}")
public UserDetailVO getUserMenuList(@PathVariable("userId")Long userId) {
UserDTO userDTO = userService.getUserDetail(userId);
return BeanUtils.copyObject(userDTO, UserDetailVO.class);
}
/**
* 添加用户
*
* @param form 用户表单
* @return the long
*/
@PostMapping
public Long addUser(@RequestBody UserForm form) {
return userService.addUser(form);
}
/**
* 编辑用户
*
* @param form 用户表单
* @return the long
*/
@PutMapping
public Boolean editUser(@RequestBody UserForm form) {
return userService.editUser(form);
}
/**
* 删除用户
*
* @param userId 用户编号
* @return the long
*/
@DeleteMapping("/{userId}")
public Boolean deleteUser(@PathVariable("userId") Long userId) {
return userService.deleteUser(userId);
}
}
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="/test/umi.9d3ac19a.css">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<title>Demo</title>
<script>window.routerBase = "/";</script>
</head>
<body>
<div id="root"></div>
<script src="/test/umi.1d08205c.js"></script>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
{
"/umi.css": "/umi.css",
"/umi.js": "/umi.js",
"/favicon.png": "/favicon.png",
"/icons/icon-128x128.png": "/icons/icon-128x128.png",
"/icons/icon-192x192.png": "/icons/icon-192x192.png",
"/icons/icon-512x512.png": "/icons/icon-512x512.png",
"/images/default-avatar.png": "/images/default-avatar.png",
"/images/go_todo.svg": "/images/go_todo.svg",
"/images/layout1.svg": "/images/layout1.svg",
"/images/layout2.svg": "/images/layout2.svg",
"/images/layout3.svg": "/images/layout3.svg",
"/images/layout_1_select.svg": "/images/layout_1_select.svg",
"/images/layout_1_unselect.svg": "/images/layout_1_unselect.svg",
"/images/message.svg": "/images/message.svg",
"/images/notice.png": "/images/notice.png",
"/images/notice.svg": "/images/notice.svg",
"/images/select.svg": "/images/select.svg",
"/images/todo.png": "/images/todo.png",
"/images/todo.svg": "/images/todo.svg",
"/images/unselect.svg": "/images/unselect.svg",
"/images/view.svg": "/images/view.svg",
"/index.html": "/index.html",
"/static/index.less": "/static/login-back-gray.e87b4b35.png"
}
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1556648303506" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="13903" xmlns:xlink="http://www.w3.org/1999/xlink" width="128" height="128"><defs><style type="text/css"></style></defs><path d="M513.779013 78.276581c-241.945796 0-437.637248 195.691452-437.637248 437.637248S271.833218 953.551077 513.779013 953.551077s437.637248-195.691452 437.637248-437.637248S755.013204 78.276581 513.779013 78.276581z m260.447533 455.42738L537.973593 709.470466c-14.232106 10.674079-34.157054 0.711605-34.157054-17.078527v-106.740792H258.312717c-7.827658 0-14.232106-6.404448-14.232105-14.232106V462.543433c0-7.827658 6.404448-14.232106 14.232105-14.232106h245.503822V341.570535c0-17.790132 19.924948-27.752606 34.157054-17.078527l236.252953 175.0549a21.348158 21.348158 0 0 1 0 34.157053z" p-id="13904" fill="#1296db"></path></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1555940830318" class="icon" style="" viewBox="0 0 1058 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1491" xmlns:xlink="http://www.w3.org/1999/xlink" width="132.25" height="128"><defs><style type="text/css"></style></defs><path d="M1006.644098 1024H28.124173c-15.348524 0-27.835376-12.486852-27.835376-27.835376V27.836353c0-15.348524 12.486852-27.835376 27.835376-27.835376H1006.644098c15.348524 0 27.835376 12.486852 27.835376 27.835376v968.329248c0 15.347547-12.486852 27.834399-27.835376 27.834399z m-962.404708-43.950594H990.528881V43.95157H44.23939v936.097836z" p-id="1492"></path><path d="M22.264093 201.673648H1012.504177v43.950593H22.264093zM22.264093 303.24347H1012.504177v43.950594H22.264093zM22.264093 842.344383h980.049407v43.950593H22.264093z" p-id="1493"></path><path d="M207.821547 325.218767h43.950594v539.101889h-43.950594zM776.223832 325.218767h43.950594v539.101889h-43.950594z" p-id="1494"></path><path d="M1002.312523 996.335543c0 2.334265-2.624339 4.225117-5.860079 4.225117H39.843354c-3.23574 0-5.860079-1.891829-5.860079-4.225117V868.544797c0-2.334265 2.624339-4.225117 5.860079-4.225117h956.60909c3.23574 0 5.860079 1.891829 5.860079 4.225117v127.790746z" p-id="1495"></path></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1555940301806" class="icon" style="" viewBox="0 0 1058 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1212" xmlns:xlink="http://www.w3.org/1999/xlink" width="132.25" height="128"><defs><style type="text/css"></style></defs><path d="M1006.644098 1024H28.124173c-15.348524 0-27.835376-12.486852-27.835376-27.835376V27.836353c0-15.348524 12.486852-27.835376 27.835376-27.835376H1006.644098c15.348524 0 27.835376 12.486852 27.835376 27.835376v968.329248c0 15.347547-12.486852 27.834399-27.835376 27.834399z m-962.404708-43.950594H990.528881V43.95157H44.23939v936.097836z" p-id="1213"></path><path d="M22.264093 201.673648H1012.504177v43.950593H22.264093zM22.264093 303.24347H1012.504177v43.950594H22.264093zM22.264093 842.344383h980.049407v43.950593H22.264093z" p-id="1214"></path><path d="M207.821547 325.218767h43.950594v539.101889h-43.950594zM776.223832 325.218767h43.950594v539.101889h-43.950594zM1002.312523 210.95406a5.860079 5.860079 0 0 1-5.860079 5.860079H39.843354a5.860079 5.860079 0 0 1-5.860079-5.860079V33.695455a5.860079 5.860079 0 0 1 5.860079-5.860079h956.60909a5.860079 5.860079 0 0 1 5.860079 5.860079v177.258605z" p-id="1215"></path></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1555940323076" class="icon" style="" viewBox="0 0 1058 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1351" xmlns:xlink="http://www.w3.org/1999/xlink" width="132.25" height="128"><defs><style type="text/css"></style></defs><path d="M1006.644098 1024H28.124173c-15.348524 0-27.835376-12.486852-27.835376-27.835376V27.836353c0-15.348524 12.486852-27.835376 27.835376-27.835376H1006.644098c15.348524 0 27.835376 12.486852 27.835376 27.835376v968.329248c0 15.347547-12.486852 27.834399-27.835376 27.834399z m-962.404708-43.950594H990.528881V43.95157H44.23939v936.097836z" p-id="1352"></path><path d="M22.264093 201.673648H1012.504177v43.950593H22.264093zM22.264093 303.24347H1012.504177v43.950594H22.264093zM22.264093 842.344383h980.049407v43.950593H22.264093z" p-id="1353"></path><path d="M207.821547 325.218767h43.950594v539.101889h-43.950594zM776.223832 325.218767h43.950594v539.101889h-43.950594z" p-id="1354"></path><path d="M35.448295 338.404922h194.348549v517.126592H35.448295z" p-id="1355"></path></svg>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="132.25px" height="128px" viewBox="0 0 132.25 128" enable-background="new 0 0 132.25 128" xml:space="preserve">
<path d="M125.83,128H3.516c-1.918,0-3.479-1.561-3.479-3.479V3.479C0.036,1.561,1.597,0,3.516,0H125.83
c1.919,0,3.48,1.561,3.48,3.479v121.041C129.311,126.439,127.749,128,125.83,128z M5.53,122.506h118.287V5.494H5.53V122.506z"/>
<path d="M2.783,25.209h123.779v5.494H2.783V25.209z M2.783,37.905h123.779v5.494H2.783V37.905z M2.783,105.293h122.506v5.494H2.783
V105.293z"/>
<path d="M25.978,40.652h5.494v67.388h-5.494V40.652z M97.027,40.652h5.494v67.388h-5.494V40.652z"/>
<path d="M4.431,42.301h24.293v64.641H4.431V42.301z"/>
<polygon fill="#F6B05F" points="52.84,86.628 58.504,92.284 103.752,47.036 92.44,35.716 58.504,69.66 41.527,52.691 30.216,64.004
"/>
</svg>
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1555862658695" class="icon" style="" viewBox="0 0 1058 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11645" xmlns:xlink="http://www.w3.org/1999/xlink" width="132.25" height="128"><defs><style type="text/css"></style></defs><path d="M1006.644098 1024H28.124173c-15.348524 0-27.835376-12.486852-27.835376-27.835376V27.836353c0-15.348524 12.486852-27.835376 27.835376-27.835376H1006.644098c15.348524 0 27.835376 12.486852 27.835376 27.835376v968.329248c0 15.347547-12.486852 27.834399-27.835376 27.834399z m-962.404708-43.950594H990.528881V43.95157H44.23939v936.097836z" p-id="11646"></path><path d="M22.264093 201.673648H1012.504177v43.950593H22.264093zM22.264093 303.24347H1012.504177v43.950594H22.264093zM22.264093 842.344383h980.049407v43.950593H22.264093z" p-id="11647"></path><path d="M207.821547 325.218767h43.950594v539.101889h-43.950594zM776.223832 325.218767h43.950594v539.101889h-43.950594z" p-id="11648"></path><path d="M35.448295 338.404922h194.348549v517.126592H35.448295z" p-id="11649"></path></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1555734338308" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1109" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M883.84 164.756H140.4c-51.061 0-93.137 43.26-93.137 96.21V717.43c0 52.961 42.081 96.21 93.138 96.21h261.442l66.192 87.7a29.85 29.85 0 0 0 8.033 8.28c19.855 17.018 48.696 12.287 65.244-8.28l66.186-87.7H883.84c51.297 0 92.902-43.249 92.902-96.21V260.966c0-52.95-41.605-96.21-92.902-96.21zM303.037 549.361c-32.624 0-58.153-26.47-58.153-60.043 0-33.802 25.529-60.277 58.153-60.277 32.62 0 58.148 26.475 58.148 60.277 0 33.572-25.528 60.043-58.148 60.043z m208.963 0c-32.384 0-58.148-26.47-58.148-60.043 0-33.802 25.764-60.277 58.148-60.277 32.625 0 58.148 26.475 58.148 60.277 0 33.572-25.523 60.043-58.148 60.043z m209.203 0c-32.384 0-57.917-26.47-57.917-60.043 0-33.802 25.528-60.277 57.917-60.277s58.148 26.475 58.148 60.277c0.005 33.572-25.759 60.043-58.148 60.043z" p-id="1110" ></path></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1557908719958" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3158" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M611.8 923.3H412.2c0 56.6 43.5 100.4 99.8 100.4 56.2 0 99.8-43.9 99.8-100.4zM512 1.4c-41.7 0-72.6 34.7-72.6 77.6v34.7c-144.2 33.8-254.9 165.2-254.9 322.2v261L85.6 799.1v51.1h852.8v-51.1l-98.9-102.2v-261c0-157-110.7-288.4-254.9-323.1V79.9c0-36.5-20-69.4-54.4-76.7-6.4-1.8-12.8-1.8-18.2-1.8z m0 168.8l55.3 13.7c115.2 28.3 199.6 134.2 199.6 251.9v290.3l20.9 21 28.1 29.2H208.1l28.1-29.2 20.9-21V435.8c0-117.8 83.5-224.5 199.6-251.9l55.3-13.7z" p-id="3159"></path></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1555778929744" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2885" xmlns:xlink="http://www.w3.org/1999/xlink" width="128" height="128"><defs><style type="text/css"></style></defs><path d="M436.992 735.04l45.312 45.248 361.984-361.984-90.496-90.56-271.488 271.552-135.808-135.744L256 554.048l180.992 180.992zM192 64h640a128 128 0 0 1 128 128v640a128 128 0 0 1-128 128H192a128 128 0 0 1-128-128V192a128 128 0 0 1 128-128z" p-id="2886"></path></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1557907226544" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2313" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M879.66151111 86.83633778H144.56490667c-58.36231111 0-105.82243555 47.52042667-105.82243556 105.82243555v638.91114667c0 58.42261333 47.52042667 105.88387555 105.82243556 105.88387555H879.66151111c58.36117333 0 105.82243555-47.46012445 105.82243556-105.88387555v-638.85084445c-0.06030222-58.36231111-47.52042667-105.88273778-105.82243556-105.88273777z m45.53272889 744.79388444c0 25.17560889-20.47772445 45.65333333-45.59303111 45.65333333H144.56490667c-25.11530667 0-45.59303111-20.47772445-45.59303112-45.65333333V192.72021333c0-25.11530667 20.47772445-45.59303111 45.59303112-45.59303111H879.66151111c25.11530667 0 45.59303111 20.47772445 45.59303111 45.59303111v638.91114667h-0.06030222z" p-id="2314"></path><path d="M379.23157333 265.54026667l-106.79068444 106.79068444-48.54101334-48.54101333c-14.56241778-14.56241778-38.83235555-14.56241778-48.54101333 0-14.56241778 14.56241778-14.56241778 38.83235555 0 48.54101333l77.66584889 77.66584889c4.85376 4.85376 14.56241778 9.70865778 29.12483556 9.70865778s14.56241778-4.85376 29.12483555-9.70865778l131.06176-131.06176c14.56241778-14.56241778 14.56241778-38.83235555 0-48.54101333-29.12597333-14.56241778-48.54215111-14.56241778-63.10456889-4.85376zM825.81048889 323.78993778H490.87601778c-24.27107555 0-33.97859555 14.56241778-33.97859556 33.97859555 0 24.27107555 14.56241778 33.97859555 33.97859556 33.97859556H825.81048889c24.27107555 0 33.97859555-14.56241778 33.97859556-33.97859556 0.00113778-19.41617778-14.56128-33.97859555-33.97859556-33.97859555zM291.85706667 542.22506667c-63.10343111 0-111.64444445 48.54101333-111.64444445 111.64444444s48.54101333 111.64444445 111.64444445 111.64444444 111.64444445-48.54101333 111.64444444-111.64444444c0.00113778-67.95719111-53.39477333-111.64444445-111.64444444-111.64444444z m0 145.62417778c-24.27107555 0-38.83235555-14.56241778-38.83235556-38.83235556 0-24.27107555 14.56241778-38.83235555 38.83235556-38.83235556 24.27107555 0 38.83235555 14.56241778 38.83235555 38.83235556 0.00113778 24.26993778-19.41617778 38.83235555-38.83235555 38.83235556zM825.81048889 615.03715555H490.87601778c-24.27107555 0-33.97859555 14.56241778-33.97859556 33.97859556s14.56241778 33.97859555 33.97859556 33.97859556H825.81048889c24.27107555 0 33.97859555-14.56241778 33.97859556-33.97859556 0.00113778-19.41617778-14.56128-33.97859555-33.97859556-33.97859556z" p-id="2315"></path></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1555774258430" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6454" xmlns:xlink="http://www.w3.org/1999/xlink" width="128" height="128"><defs><style type="text/css"></style></defs><path d="M962 782c0 99.405-80.595 180-180 180h-540c-99.405 0-180-80.595-180-180v-540c0-99.405 80.595-180 180-180h540c99.405 0 180 80.595 180 180v540z" p-id="6455" data-spm-anchor-id="a313x.7781069.0.i3" class="selected" ></path></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1582459163459" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="70566" width="16" height="16" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><style type="text/css"></style></defs><path d="M1011.154 1011.377c-8.139 8.144-18.955 12.623-30.457 12.623-11.507 0-22.323-4.479-30.457-12.618L813.826 874.906c-45.045 35.11-100.41 54.233-158.006 54.233-68.745 0-133.375-26.781-181.988-75.415-48.608-48.633-75.379-113.299-75.379-182.075 0-68.781 26.766-133.441 75.379-182.075 48.608-48.639 113.237-75.42 181.988-75.42 68.745 0 133.375 26.781 181.988 75.42 48.608 48.633 75.379 113.294 75.379 182.075 0 50.154-14.159 98.06-41.104 139.645l139.072 139.144c16.789 16.8 16.789 44.134-0.001 60.939zM655.82 842.954c45.731 0 88.729-17.818 121.069-50.174s50.149-75.374 50.149-121.131c0-45.762-17.808-88.78-50.149-121.131-32.34-32.356-75.338-50.174-121.069-50.174-45.736 0-88.734 17.818-121.074 50.174-32.34 32.356-50.149 75.369-50.149 121.131 0 45.757 17.808 88.775 50.149 121.131s75.337 50.174 121.074 50.174zM765.965 86.185H86.402v782.266h263.212v86.19H79.773c-43.847 0-79.52-35.693-79.52-79.561V79.556C0.253 35.688 35.926 0 79.773 0h692.821c43.847 0 79.515 35.688 79.515 79.556v299.586h-86.144V86.185z m-454.158 657.67H207.461c-23.751 0-43.074-19.334-43.074-43.095s19.323-43.095 43.074-43.095h104.346c23.751 0 43.074 19.334 43.074 43.095s-19.322 43.095-43.074 43.095z m-147.42-477.423c0-23.761 19.323-43.095 43.074-43.095H595.29c23.751 0 43.074 19.334 43.074 43.095s-19.323 43.095-43.074 43.095H207.461c-23.751 0-43.074-19.334-43.074-43.095z m0 224.289c0-23.761 19.323-43.095 43.074-43.095h152.795c23.746 0 43.069 19.328 43.074 43.09 0 23.766-19.323 43.1-43.074 43.1H207.461c-23.751 0-43.074-19.333-43.074-43.095z" p-id="70567" fill="#04c6b3"></path></svg>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="/test1/umi.css">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0">
<title>Nemean Pro</title>
<link rel="icon" href="/favicon.png" type="image/x-icon">
<script>window.routerBase = "/";</script>
</head>
<body>
<noscript>Out-of-the-box mid-stage front/design solution!</noscript>
<div id="root">
<style>.page-loading-warp {
padding: 120px;
display: flex;
justify-content: center;
align-items: center;
}
.ant-spin {
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
color: rgba(0, 0, 0, 0.65);
font-size: 14px;
font-variant: tabular-nums;
line-height: 1.5;
list-style: none;
-webkit-font-feature-settings: "tnum";
font-feature-settings: "tnum";
position: absolute;
display: none;
color: #1890ff;
text-align: center;
vertical-align: middle;
opacity: 0;
-webkit-transition: -webkit-transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
transition: -webkit-transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
transition: transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
transition: transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86),
-webkit-transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
}
.ant-spin-spinning {
position: static;
display: inline-block;
opacity: 1;
}
.ant-spin-dot {
position: relative;
display: inline-block;
font-size: 20px;
width: 20px;
height: 20px;
}
.ant-spin-dot-item {
position: absolute;
display: block;
width: 9px;
height: 9px;
background-color: #1890ff;
border-radius: 100%;
-webkit-transform: scale(0.75);
-ms-transform: scale(0.75);
transform: scale(0.75);
-webkit-transform-origin: 50% 50%;
-ms-transform-origin: 50% 50%;
transform-origin: 50% 50%;
opacity: 0.3;
-webkit-animation: antSpinMove 1s infinite linear alternate;
animation: antSpinMove 1s infinite linear alternate;
}
.ant-spin-dot-item:nth-child(1) {
top: 0;
left: 0;
}
.ant-spin-dot-item:nth-child(2) {
top: 0;
right: 0;
-webkit-animation-delay: 0.4s;
animation-delay: 0.4s;
}
.ant-spin-dot-item:nth-child(3) {
right: 0;
bottom: 0;
-webkit-animation-delay: 0.8s;
animation-delay: 0.8s;
}
.ant-spin-dot-item:nth-child(4) {
bottom: 0;
left: 0;
-webkit-animation-delay: 1.2s;
animation-delay: 1.2s;
}
.ant-spin-dot-spin {
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
-webkit-animation: antRotate 1.2s infinite linear;
animation: antRotate 1.2s infinite linear;
}
.ant-spin-lg .ant-spin-dot {
font-size: 32px;
width: 32px;
height: 32px;
}
.ant-spin-lg .ant-spin-dot i {
width: 14px;
height: 14px;
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
.ant-spin-blur {
background: #fff;
opacity: 0.5;
}
}
@-webkit-keyframes antSpinMove {
to {
opacity: 1;
}
}
@keyframes antSpinMove {
to {
opacity: 1;
}
}
@-webkit-keyframes antRotate {
to {
-webkit-transform: rotate(405deg);
transform: rotate(405deg);
}
}
@keyframes antRotate {
to {
-webkit-transform: rotate(405deg);
transform: rotate(405deg);
}
}</style>
<div class="page-loading-warp">
<div class="ant-spin ant-spin-lg ant-spin-spinning"><span class="ant-spin-dot ant-spin-dot-spin"><i
class="ant-spin-dot-item"></i><i class="ant-spin-dot-item"></i><i class="ant-spin-dot-item"></i><i
class="ant-spin-dot-item"></i></span></div>
</div>
</div>
<script src="/test1/umi.js"></script>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="/test2/umi.9d3ac19a.css">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<title>Demo</title>
<script>window.routerBase = "/";</script>
</head>
<body>
<div id="root"></div>
<script src="/test2/umi.0777a2da.js"></script>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
<packaging>pom</packaging> <packaging>pom</packaging>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<modules> <modules>
<module>demo</module> <module>resource-server</module>
<module>demo1</module> <module>auth-server</module>
</modules> </modules>
<parent> <parent>
......
...@@ -12,31 +12,24 @@ ...@@ -12,31 +12,24 @@
<artifactId>demo</artifactId> <artifactId>demo</artifactId>
<dependencies> <dependencies>
<!-- 注意是starter,自动配置 -->
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId> <artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-generator</artifactId>
</dependency> </dependency>
<!-- 不是starter,手动配置 -->
<dependency> <dependency>
<groupId>mysql</groupId> <groupId>org.springframework.security.oauth</groupId>
<artifactId>mysql-connector-java</artifactId> <artifactId>spring-security-oauth2</artifactId>
</dependency> </dependency>
<!-- https://mvnrepository.com/artifact/org.freemarker/freemarker -->
<dependency> <dependency>
<groupId>org.freemarker</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>freemarker</artifactId> <artifactId>spring-boot-starter-web</artifactId>
</dependency> </dependency>
<!-- 将token存储在redis中 -->
<dependency> <dependency>
<groupId>com.github.fengyuchenglun</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>kim-boot-util</artifactId> <artifactId>spring-boot-starter-data-redis</artifactId>
<version>1.0.13</version>
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>
\ No newline at end of file
package com.duanledexianxianxian.demo.controller;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
/**
* The type Home controller.
*
* @author fengyuchenglun
*/
@RestController
public class HomeController {
/**
* Gets product.
*
* @param id the id
* @return the product
*/
@GetMapping("/product/{id}")
public String getProduct(@PathVariable String id) {
//for debug
Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
return "product id : " + id;
}
/**
* Gets order.
*
* @param id the id
* @return the order
*/
@GetMapping("/order/{id}")
public String getOrder(@PathVariable String id) {
//for debug
Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
return "order id : " + id;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment