Coder Social home page Coder Social logo

idoctor-idea's Introduction

idoctor

基于SSM的医院综合管理系统
1.使用PageHelper分页
2.Redis
(1)Redis运行:在根目录下执行redis-server.exe redis.windows.conf
(2) 涉及问题:在数据库数据更新后如何更新Redis?----在更新数据时同时删除Redis
(3)参考:https://blog.csdn.net/xsyl08/article/details/78773760
3.整合swagger-ui
(1)maven引入所需jar包:
springfox-swagger-ui
springfox-swagger2
自定义配置文件:/idoctor/src/main/java/com/idoctor/utils/SwaggerConfig.java
4.使用MD5加密工具
5.Mybatis批量操作
(1)我的方法:前端想后端传递List<>参数时采用传Json String方式,使用JSONArray.fromObject(str)在后端转换为Json对象
(2)映射文件操作sql使用迭代数组或者List<>集合
(3)批量更新参考:https://www.cnblogs.com/Jason-Xiang/p/6558334.html
6.国际化i18n (1)Spring核心配置文件配置bea:messageSource、CookieLocaleResolver
(2)按照需求创建中文和英文两个资源文件,将它们放在新建文件夹messages下。
(3)引入Spring标签库:
jsp <%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>
html h5国际化标签 或利用模版引擎加载
7.OAtho 2.0实现第三方登录
(1)用户在服务商授权页完成授权,获得code
(2)第三方应用取得code后访问服务商应用,获得access token
(3)第三方应用以access token为凭证到服务商处获取资源
8.shiro认证和授权管理
(1)shiro核心:Subject、SecurityManager、Realm(类似一个dao)
(2)依赖jar包:
---shiro-spring
---shiro-web
---aspectjweaver(注解)
(3)Realm
---使用IniReam,配置文件:xxx.ini配置相关认证授权信息
---JdbcRealm结合数据库认证授权
---自定义Realm
(4)构建SecurityManager环境
(5)整合到Spring,核心配置文件注入对象:










(6)Subjec提交认证请求
---认证方法登录login()、logout()
---角色
---授权
(7)注解实现:
---@RequiresRoles("admin")
---@RequiresPermissions("user:add")
(8)Shiro会话管理 ---SessionManager、SessionDAO ---Redis实现Session共享 ---Redis是吸纳Session共享存在的问题 (9)缓存管理(缓存角色数据和授权的) ---CacheManager、Cache ---Redis实现CacheManager (10)shiro实现自动登录 ---RemeberMe

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.