diff --git a/README.md b/README.md index 237018201..08d2f1489 100644 --- a/README.md +++ b/README.md @@ -1,90 +1,3 @@ -## 平台简介 +# 平台简介 -一直想做一款后台管理系统,看了很多优秀的开源项目但是发现没有合适的。于是利用空闲休息时间开始自己写了一套后台系统。如此有了若依。她可以用于所有的Web应用程序,如网站管理后台,网站会员中心,CMS,CRM,OA。所有前端后台代码封装过后十分精简易上手,出错概率低。同时支持移动客户端访问。系统会陆续更新一些实用功能。 - -性别男,若依是给还没有出生女儿取的名字(寓意:你若不离不弃,我必生死相依) - -> 如需前后端分离版本,请移步 [RuoYi-Vue](https://gitee.com/y_project/RuoYi-Vue) - -> 如需单应用,请移步 [RuoYi-fast](https://gitee.com/y_project/RuoYi-fast) `(保持同步更新)`,如需其他版本,请移步 [项目扩展](http://doc.ruoyi.vip/ruoyi/document/xmkz.html) `(不定时更新)` - -> 阿里云通用云产品1888优惠券 :[点我领取](https://www.aliyun.com/minisite/goods?userCode=brki8iof)    腾讯云通用云产品2860优惠券 :[点我领取](https://cloud.tencent.com/redirect.php?redirect=1025&cps_key=198c8df2ed259157187173bc7f4f32fd&from=console)  `(仅限新用户)` - -> 阿里云Hi拼购 限量爆款 低至199元/年 [点我进入](https://www.aliyun.com/acts/hi-group-buying?userCode=brki8iof)  `(仅限新用户)` - -## 内置功能 - -1. 用户管理:用户是系统操作者,该功能主要完成系统用户配置。 -2. 部门管理:配置系统组织机构(公司、部门、小组),树结构展现支持数据权限。 -3. 岗位管理:配置系统用户所属担任职务。 -4. 菜单管理:配置系统菜单,操作权限,按钮权限标识等。 -5. 角色管理:角色菜单权限分配、设置角色按机构进行数据范围权限划分。 -6. 字典管理:对系统中经常使用的一些较为固定的数据进行维护。 -7. 参数管理:对系统动态配置常用参数。 -8. 通知公告:系统通知公告信息发布维护。 -9. 操作日志:系统正常操作日志记录和查询;系统异常信息日志记录和查询。 -10. 登录日志:系统登录日志记录查询包含登录异常。 -11. 在线用户:当前系统中活跃用户状态监控。 -12. 定时任务:在线(添加、修改、删除)任务调度包含执行结果日志。 -13. 代码生成:前后端代码的生成(java、html、xml、sql)支持CRUD下载 。 -14. 系统接口:根据业务代码自动生成相关的api接口文档。 -15. 服务监控:监视当前系统CPU、内存、磁盘、堆栈等相关信息。 -16. 在线构建器:拖动表单元素生成相应的HTML代码。 -17. 连接池监视:监视当前系统数据库连接池状态,可进行分析SQL找出系统性能瓶颈。 -## 在线体验 -> admin/admin123 -> 陆陆续续收到一些打赏,为了更好的体验已用于演示服务器升级。谢谢各位小伙伴。 - -演示地址:http://ruoyi.vip - -文档地址:http://doc.ruoyi.vip - -## 演示图 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -## 若依交流群 - -QQ群: [![加入QQ群](https://img.shields.io/badge/已满-1389287-blue.svg)](https://jq.qq.com/?_wv=1027&k=5HBAaYN) [![加入QQ群](https://img.shields.io/badge/已满-1679294-blue.svg)](https://jq.qq.com/?_wv=1027&k=5cHeRVW) [![加入QQ群](https://img.shields.io/badge/已满-1529866-blue.svg)](https://jq.qq.com/?_wv=1027&k=53R0L5Z) [![加入QQ群](https://img.shields.io/badge/已满-1772718-blue.svg)](https://jq.qq.com/?_wv=1027&k=5g75dCU) [![加入QQ群](https://img.shields.io/badge/已满-1366522-blue.svg)](https://jq.qq.com/?_wv=1027&k=58cPoHA) [![加入QQ群](https://img.shields.io/badge/已满-1382251-blue.svg)](https://jq.qq.com/?_wv=1027&k=5Ofd4Pb) [![加入QQ群](https://img.shields.io/badge/已满-1145125-blue.svg)](https://jq.qq.com/?_wv=1027&k=5yugASz) [![加入QQ群](https://img.shields.io/badge/已满-86752435-blue.svg)](https://jq.qq.com/?_wv=1027&k=5Rf3d2P) [![加入QQ群](https://img.shields.io/badge/已满-134072510-blue.svg)](https://jq.qq.com/?_wv=1027&k=5ZIjaeP) [![加入QQ群](https://img.shields.io/badge/已满-210336300-blue.svg)](https://jq.qq.com/?_wv=1027&k=5CJw1jY) [![加入QQ群](https://img.shields.io/badge/339522636-blue.svg)](https://jq.qq.com/?_wv=1027&k=5omzbKc) \ No newline at end of file +## 用于上饶市管理需要接入江西省政务服务网相关应用单点登录的接口 \ No newline at end of file diff --git a/doc/若依环境使用手册.docx b/doc/若依环境使用手册.docx deleted file mode 100644 index c0edbcc48..000000000 --- a/doc/若依环境使用手册.docx +++ /dev/null @@ -1,78 +0,0 @@ - 若依系统开发环境搭建手册 -1. 准备工作 -1.1 前置环境准备 -- -- 安装Maven - 若依基于Maven管理项目的构建,需要先安装好相应的版本。 -1.2 开发工具 - 若依系统采用Eclipse作为开发工具。但不局限于Eclipse。此处仅介绍在Eclipse搭建开发环境所需的操作。 -2. 开发环境搭建 -2.1 开发工具的配置 -2.1.1 配置Maven -进入Window->Preferences->Maven->Installations页面,设置已经安装好的Maven - -2.1.2 配置Maven仓库路径 -进入Window->Preferences->Maven->User Settings页面,配置仓库路径 - -2.1.4 关闭校验 -进入Window->Preferences->Validation页面,勾选"Suspend all validators",关闭校验 - -2.2 导入工程 -通过Eclipse导入工程,步骤如下: -(1)点击左侧项目区域 -- >Import... -(2)选择RuoYi -(3)点击Finish(4)RuoYi的代码就被导出到Eclipse中了,此时可以在工程视图中看到。 - -3. 运行若依系统 -3.1 必要的配置 -3.1.1 修改数据库连接 -编辑src/main/ resources目录下的application-druid.yml 文件,修改数据库地址账号信息。 -执行sql/ ry_20180423.sql,quartz.sql 两个文件 日期随版本变化 -3.1.2 开发环境配置 -编辑src/main/ resources目录下的application.yml 文件, -默认端口为80 - -3.1.3 代码生成配置 -编辑src/main/ resources目录下的application.yml 文件, - -默认为module,根据实际情况修改即可。生成的表要有注释注:如对模板有特殊需求,可自行修改。编辑src/main/ resources/templates/vm目录下 - -3.1.4 日志配置 -编辑src/main/ resources目录下的logback.yml 文件 - -改为自己需要的路径 - -3.2 启动及验证 -启动RuoYiApplication.java 出现如下图表示启动成功 -打开浏览器,输入:http://localhost:80/若能正确展示登录页面,并能成功登录,登录后菜单及页面展示正常,则表明环境搭建成功。默认密码为 admin/admin123 - -演示地址:http://www.ruoyi.club - - - -4. 部署若依系统 -4.1 war部署方式 -4.1.1 修改pom.xml文件。将jar修改为war - -如果是分模块需要修改ruoyi-admin - - -4.1.2 在spring-boot-starter依赖中移除tomcat模块 - - - - spring-boot-starter-tomcat - org.springframework.boot - - - -4.1.3 部署到tomcat的webapps目录下面 -默认为RuoYi.war - -4.1.4 启动及验证 -运行startup.bat 出现如下图即部署成功 -4.2 Jar方式部署 -执行命令:java - jar RuoYi.jar -脚本执行:ry.sh start 启动stop 停止 - - -演示地址:ruoyi.vip -文档地址:doc.ruoyi.vip diff --git a/pom.xml b/pom.xml index 579f5ddeb..301e7cf4e 100644 --- a/pom.xml +++ b/pom.xml @@ -209,10 +209,11 @@ ruoyi-admin ruoyi-framework + ruoyi-sso ruoyi-system ruoyi-quartz ruoyi-generator - ruoyi-common + ruoyi-common pom diff --git a/ruoyi-admin/pom.xml b/ruoyi-admin/pom.xml index 068dcd677..d7c9de421 100644 --- a/ruoyi-admin/pom.xml +++ b/ruoyi-admin/pom.xml @@ -72,7 +72,19 @@ com.ruoyi ruoyi-generator - + + + org.jodd + jodd-core + 5.1.4 + + + + org.jodd + jodd-http + 5.1.4 + + diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/SsoApiController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/SsoApiController.java new file mode 100644 index 000000000..193868c03 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/SsoApiController.java @@ -0,0 +1,88 @@ +package com.ruoyi.web.controller.api; + +import com.alibaba.fastjson.JSONObject; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.exception.BusinessException; +import com.ruoyi.common.utils.DESUtil; +import com.ruoyi.sso.domain.SsoApplication; +import com.ruoyi.sso.service.ISsoApplicationService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import jodd.http.HttpRequest; +import jodd.http.HttpResponse; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.util.CollectionUtils; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; + +import java.util.List; + +@Api("单点登录") +@Controller +@RequestMapping("/api/sso") +public class SsoApiController extends BaseController { + + private Logger logger = LoggerFactory.getLogger(SsoApiController.class); + + @Autowired + private ISsoApplicationService iSsoApplicationService; + + private final String JXSR_CLIENT_ID = "4802e571a8c94cd9921bc77cd8bf6084"; + private final String JXSR_SSO_API_KEY = "sr_sso_manager_2020020211000011"; + + @ApiOperation("重定向至省网登录") + @GetMapping(value = "/redirectUrl") + public String redirectUrl(@ApiParam(value = "应用标识", type = "String", required = true) String appKey, + @ApiParam(value = "应用密钥", type = "String", required = true) String appSecret) throws Exception { + logger.info("appKey = {} ----- appSecret = {}", appKey, appSecret); + SsoApplication queryObject = new SsoApplication(); + queryObject.setAppKey(appKey); + queryObject.setAppSecret(appSecret); + List ssoApplications = iSsoApplicationService.querySsoApplicationByAppKeyAndSecret(queryObject); + if (!CollectionUtils.isEmpty(ssoApplications)) { + SsoApplication ssoApplication = ssoApplications.get(0); + JSONObject queryParamObject = new JSONObject(); + queryParamObject.put("appKey", ssoApplication.getAppKey()); + String s = queryParamObject.toString(); + String resultQueryStr = DESUtil.encrypt(s, JXSR_SSO_API_KEY); + return "redirect:https://login.jxzwfww.gov.cn/auth2/authorize.do?redirect_uri=" + resultQueryStr + "&client_id=" + JXSR_CLIENT_ID; + } + throw new BusinessException("应用不存在!"); + } + + @ApiOperation("重定向至各个应用回调地址") + @GetMapping(value = "/ssoCallBack") + public String ssoCallBack(@ApiParam(value = "回调应用加密信息", type = "String") String redirect_uri, + @ApiParam(value = "用于搜索数据的ticket", type = "String") String ticket, + @ApiParam(value = "登录类型", type = "String") String logintype) throws Exception { + logger.info("redirect_uri = {} ----- ticket = {} ----- loginType = {}", redirect_uri, ticket, logintype); + String resultJsonStr = DESUtil.decrypt(redirect_uri, JXSR_SSO_API_KEY); + JSONObject jsonObject = JSONObject.parseObject(resultJsonStr); + String appKey = jsonObject.getString("appKey"); + SsoApplication queryObject = new SsoApplication(); + queryObject.setAppKey(appKey); + List ssoApplications = iSsoApplicationService.querySsoApplicationByAppKeyAndSecret(queryObject); + if (!CollectionUtils.isEmpty(ssoApplications)) { + SsoApplication ssoApplication = ssoApplications.get(0); + return "redirect:" + ssoApplication.getAppCallBackUrl() + "?ticket=" + ticket + "&loginType=" + logintype; + } + throw new BusinessException("应用不存在!"); + } + + @ApiOperation("根据ticket获取用户信息") + @GetMapping(value = "/validateTicket", produces = "application/json;charset=utf-8") + @ResponseBody + public String validateTicket(@ApiParam(value = "回调中获取的ticket值", type = "String", required = true) String ticket) { + logger.info("ticket = {}", ticket); + HttpResponse response = HttpRequest.post("https://login.jxzwfww.gov.cn/auth2/validationTicket.do") + .form("ticket", ticket) + .form("clientId", JXSR_CLIENT_ID) + .send(); + return response.bodyText(); + } +} \ No newline at end of file diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/sso/SsoApplicationController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/sso/SsoApplicationController.java new file mode 100644 index 000000000..108a09dbd --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/sso/SsoApplicationController.java @@ -0,0 +1,137 @@ +package com.ruoyi.web.controller.sso; + +import java.util.Date; +import java.util.List; +import java.util.UUID; + +import com.ruoyi.framework.util.ShiroUtils; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.ui.ModelMap; +import org.springframework.util.Base64Utils; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.sso.domain.SsoApplication; +import com.ruoyi.sso.service.ISsoApplicationService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 单点登录应用Controller + * + * @author shixueshu + * @date 2020-03-23 + */ +@Controller +@RequestMapping("/sso/ssoApplication") +public class SsoApplicationController extends BaseController +{ + private String prefix = "sso/ssoApplication"; + + @Autowired + private ISsoApplicationService ssoApplicationService; + + @RequiresPermissions("sso:ssoApplication:view") + @GetMapping() + public String ssoApplication() + { + return prefix + "/ssoApplication"; + } + + /** + * 查询单点登录应用列表 + */ + @RequiresPermissions("sso:ssoApplication:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(SsoApplication ssoApplication) + { + startPage(); + List list = ssoApplicationService.selectSsoApplicationList(ssoApplication); + return getDataTable(list); + } + + /** + * 导出单点登录应用列表 + */ + @RequiresPermissions("sso:ssoApplication:export") + @Log(title = "单点登录应用", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(SsoApplication ssoApplication) + { + List list = ssoApplicationService.selectSsoApplicationList(ssoApplication); + ExcelUtil util = new ExcelUtil(SsoApplication.class); + return util.exportExcel(list, "templates/sso/ssoApplication"); + } + + /** + * 新增单点登录应用 + */ + @GetMapping("/add") + public String add(Model model) + { + String appSecret = Base64Utils.encodeToString(UUID.randomUUID().toString().getBytes()); + model.addAttribute("appSecret", appSecret); + return prefix + "/add"; + } + + /** + * 新增保存单点登录应用 + */ + @RequiresPermissions("sso:ssoApplication:add") + @Log(title = "单点登录应用", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(SsoApplication ssoApplication) + { + ssoApplication.setCreateBy(ShiroUtils.getLoginName()); + ssoApplication.setStatus("1"); + return toAjax(ssoApplicationService.insertSsoApplication(ssoApplication)); + } + + /** + * 修改单点登录应用 + */ + @GetMapping("/edit/{appId}") + public String edit(@PathVariable("appId") Long appId, ModelMap mmap) + { + SsoApplication ssoApplication = ssoApplicationService.selectSsoApplicationById(appId); + mmap.put("ssoApplication", ssoApplication); + return prefix + "/edit"; + } + + /** + * 修改保存单点登录应用 + */ + @RequiresPermissions("sso:ssoApplication:edit") + @Log(title = "单点登录应用", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(SsoApplication ssoApplication) + { + ssoApplication.setUpdateBy(ShiroUtils.getLoginName()); + return toAjax(ssoApplicationService.updateSsoApplication(ssoApplication)); + } + + /** + * 删除单点登录应用 + */ + @RequiresPermissions("sso:ssoApplication:remove") + @Log(title = "单点登录应用", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(ssoApplicationService.deleteSsoApplicationByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/tool/TestController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/tool/TestController.java deleted file mode 100644 index bddbe7789..000000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/tool/TestController.java +++ /dev/null @@ -1,175 +0,0 @@ -package com.ruoyi.web.controller.tool; - -import java.util.ArrayList; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; -import org.springframework.web.bind.annotation.DeleteMapping; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.PutMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; -import com.ruoyi.common.core.controller.BaseController; -import com.ruoyi.common.core.domain.AjaxResult; -import com.ruoyi.common.utils.StringUtils; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiImplicitParam; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import io.swagger.annotations.ApiOperation; - -/** - * swagger 用户测试方法 - * - * @author ruoyi - */ -@Api("用户信息管理") -@RestController -@RequestMapping("/test/user") -public class TestController extends BaseController -{ - private final static Map users = new LinkedHashMap(); - { - users.put(1, new UserEntity(1, "admin", "admin123", "15888888888")); - users.put(2, new UserEntity(2, "ry", "admin123", "15666666666")); - } - - @ApiOperation("获取用户列表") - @GetMapping("/list") - public AjaxResult userList() - { - List userList = new ArrayList(users.values()); - return AjaxResult.success(userList); - } - - @ApiOperation("获取用户详细") - @ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path") - @GetMapping("/{userId}") - public AjaxResult getUser(@PathVariable Integer userId) - { - if (!users.isEmpty() && users.containsKey(userId)) - { - return AjaxResult.success(users.get(userId)); - } - else - { - return error("用户不存在"); - } - } - - @ApiOperation("新增用户") - @ApiImplicitParam(name = "userEntity", value = "新增用户信息", dataType = "UserEntity") - @PostMapping("/save") - public AjaxResult save(UserEntity user) - { - if (StringUtils.isNull(user) || StringUtils.isNull(user.getUserId())) - { - return error("用户ID不能为空"); - } - return AjaxResult.success(users.put(user.getUserId(), user)); - } - - @ApiOperation("更新用户") - @ApiImplicitParam(name = "userEntity", value = "新增用户信息", dataType = "UserEntity") - @PutMapping("/update") - public AjaxResult update(UserEntity user) - { - if (StringUtils.isNull(user) || StringUtils.isNull(user.getUserId())) - { - return error("用户ID不能为空"); - } - if (users.isEmpty() || !users.containsKey(user.getUserId())) - { - return error("用户不存在"); - } - users.remove(user.getUserId()); - return AjaxResult.success(users.put(user.getUserId(), user)); - } - - @ApiOperation("删除用户信息") - @ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path") - @DeleteMapping("/{userId}") - public AjaxResult delete(@PathVariable Integer userId) - { - if (!users.isEmpty() && users.containsKey(userId)) - { - users.remove(userId); - return success(); - } - else - { - return error("用户不存在"); - } - } -} - -@ApiModel("用户实体") -class UserEntity -{ - @ApiModelProperty("用户ID") - private Integer userId; - - @ApiModelProperty("用户名称") - private String username; - - @ApiModelProperty("用户密码") - private String password; - - @ApiModelProperty("用户手机") - private String mobile; - - public UserEntity() - { - - } - - public UserEntity(Integer userId, String username, String password, String mobile) - { - this.userId = userId; - this.username = username; - this.password = password; - this.mobile = mobile; - } - - public Integer getUserId() - { - return userId; - } - - public void setUserId(Integer userId) - { - this.userId = userId; - } - - public String getUsername() - { - return username; - } - - public void setUsername(String username) - { - this.username = username; - } - - public String getPassword() - { - return password; - } - - public void setPassword(String password) - { - this.password = password; - } - - public String getMobile() - { - return mobile; - } - - public void setMobile(String mobile) - { - this.mobile = mobile; - } -} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/core/config/SwaggerConfig.java b/ruoyi-admin/src/main/java/com/ruoyi/web/core/config/SwaggerConfig.java index 43353914a..5f49a7adf 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/core/config/SwaggerConfig.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/core/config/SwaggerConfig.java @@ -50,9 +50,9 @@ public class SwaggerConfig // 用ApiInfoBuilder进行定制 return new ApiInfoBuilder() // 设置标题 - .title("标题:若依管理系统_接口文档") + .title("标题:江西省上饶市政务服务网单点登录_接口文档") // 描述 - .description("描述:用于管理集团旗下公司的人员信息,具体包括XXX,XXX模块...") + .description("描述:主要为上饶市对接省政务服务网单点登录接口服务") // 作者信息 .contact(new Contact(Global.getName(), null, null)) // 版本 diff --git a/ruoyi-admin/src/main/resources/application-druid.yml b/ruoyi-admin/src/main/resources/application-druid.yml index d69c66d27..ebb1d32c9 100644 --- a/ruoyi-admin/src/main/resources/application-druid.yml +++ b/ruoyi-admin/src/main/resources/application-druid.yml @@ -6,9 +6,9 @@ spring: druid: # 主库数据源 master: - url: jdbc:mysql://localhost:3306/ry?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 + url: jdbc:mysql://localhost:3306/shangrao_sso_manager?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 username: root - password: password + password: shixueshu # 从库数据源 slave: # 从数据源开关/默认关闭 diff --git a/ruoyi-admin/src/main/resources/application.yml b/ruoyi-admin/src/main/resources/application.yml index 1936b7450..803604997 100644 --- a/ruoyi-admin/src/main/resources/application.yml +++ b/ruoyi-admin/src/main/resources/application.yml @@ -1,11 +1,11 @@ # 项目相关配置 ruoyi: # 名称 - name: RuoYi + name: 上饶省政务服务网单点登陆 # 版本 - version: 4.2.0 + version: 1.0.0 # 版权年份 - copyrightYear: 2019 + copyrightYear: 2020 # 实例演示开关 demoEnabled: true # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath) @@ -127,4 +127,4 @@ xss: # 排除链接(多个用逗号分隔) excludes: /system/notice/* # 匹配链接 - urlPatterns: /system/*,/monitor/*,/tool/* + urlPatterns: /system/*,/monitor/*,/tool/*,/sso/* diff --git a/ruoyi-admin/src/main/resources/templates/index.html b/ruoyi-admin/src/main/resources/templates/index.html index fb2280a96..9424329ae 100644 --- a/ruoyi-admin/src/main/resources/templates/index.html +++ b/ruoyi-admin/src/main/resources/templates/index.html @@ -46,12 +46,6 @@ -
  • - 主页 - -
  • @@ -74,97 +68,6 @@
  • -
  • - 实例演示 - -
  • @@ -180,8 +83,6 @@