12 2019 档案
摘要:package com.zys.sys.config; import java.util.HashMap; import java.util.Map; import javax.servlet.Filter; import org.apache.shiro.authc.credential.Cred
阅读全文
摘要:标准配置 对比 https://www.cnblogs.com/xiaozhang666/p/12058341.html 的对应注入查看 package com.zys.sys.config; import lombok.Data; import org.springframework.boot.c
阅读全文
摘要:pom <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.o
阅读全文
摘要:配置web.xml <!-- 配置shiro的集成开始 --> <filter> <filter-name>shiroFilter</filter-name> <filter-class>org.springframework.web.filter.DelegatingFilterProxy</fi
阅读全文
摘要:对用户和权限封装 更具用户查询已经拥有的角色 实现类 根据用户查询已经拥有的权限
阅读全文
摘要:注意清空shiro.ini 创建User对象 package cn.zys.Bean; public class User { private Integer id; private String username; private String pwd; public Integer getId(
阅读全文
摘要://原生aj ajax(options) { options = options || {}; options.type = (options.type || "GET").toUpperCase(); options.dataType = options.dataType || "json"; /
阅读全文
摘要:subject.hasRole("") ; subject.hasRoles(List); subject.hasAllRoles(); subject.isPermitted(""); 修改ini文件 #配置用户名[users]zhangsan=123456,role1lisi=123456,ro
阅读全文
摘要:使用静态shiro.ini文件完成认证 创建项目到爆 <dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-core</artifactId> <version>1.4.1</version> </dependency>
阅读全文
摘要:Spring官方DriverManagerDataSource的配置 修改yml #配置数据源的属性 spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://127.0.0.1:3306/te
阅读全文
摘要:@Configuration public class MyWebMvcConfig implements WebMvcConfigurer { //注册了新的访问路径 @Override public void addResourceHandlers(ResourceHandlerRegistry
阅读全文
摘要:@RequestMapping("/alls") public String allsinfo(HttpSession session, HttpServletRequest request,Model model){ session.setAttribute("username","小张sessi
阅读全文
摘要:thymeleaf名称空间 <!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> 1
阅读全文
摘要:1、webjars:springboot中以jar包形式引入的静态资源 所有 /webjars/** ,都去classpath:/META-INF/resources/webjars/找资源; webjars官网:https://www.webjars.org/ 导入静态资源后,资源访问路径为: 如
阅读全文
摘要:https://www.jianshu.com/p/f658fed35786
阅读全文
摘要:组件样式 面包屑导航栏 js Vue.component('bannerOne', { created() { console.log(this.bigbackColor); }, props: { imgSrc: { type: String, default: 'images/aboutYaot
阅读全文
摘要:<?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:sc
阅读全文