##Spring Security注意事项 权限优先级: 在SecurityConfig中configure(HttpSecurity http)方法中,如下代码 http.authorizeRequests() .antMatchers("/admin/**").hasRole("admin") ...
分类:
编程语言 时间:
2021-06-28 20:23:02
阅读次数:
0
产品名称: 房屋租赁系统 产品部门: 版本号 :v1.0 语 种: java 开发工具:eclipse 测试工具: junit+EclEmma 测试人员: 刘志霄 测试时间: 测试要求: 对房屋租赁系统完成单元测试,完善测试用例,完善逻辑覆盖 测试内容: 系统使用用户列表增删改查测试 租客列表增删改 ...
分类:
其他好文 时间:
2021-06-28 20:08:02
阅读次数:
0
一、 在主程序中配置 @SpringBootApplication 相当于: //@SpringBootConfiguration //@EnableAutoConfiguration //@ComponentScan("spring.main.spring"), //SpringBootAppli ...
分类:
编程语言 时间:
2021-06-28 19:53:22
阅读次数:
0
1.配置 pom <shiro.version>1.4.0</shiro.version> <!--shiro start--> <dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-core</artifactId> ...
分类:
编程语言 时间:
2021-06-28 19:50:46
阅读次数:
0
Spring 简介 Spring:春天即给软件行业带来了春天! 2002年,首次推出了Spring框架的雏形:interface 21框架! 2004年3月24日,Spring框架是以interface21框架为基础,经过了重新的设计,并不断的丰富其内涵,于2004年3月21日发布了1.0正式版本 ...
分类:
编程语言 时间:
2021-06-28 19:46:52
阅读次数:
0
创建一个Spring的helloworld项目 创建maven项目,导入Spring的环境依赖 可以参考:https://www.cnblogs.com/nwu-edu/p/9542074.html,为了简化直接导入webmvc的依赖 <dependency> <groupId>org.spring ...
分类:
编程语言 时间:
2021-06-28 19:43:13
阅读次数:
0
IOC理论的推导 假设我们要写一个user相关的业务 UserDao接口 package com.dreamcold.dao; public interface UserDao { public void getUser(); } UserDaoImpl实现类 package com.dreamco ...
分类:
编程语言 时间:
2021-06-28 19:42:06
阅读次数:
0
依赖注入 概念 依赖注入 依赖:指的是Bean对象的创建依赖于容器,Bean对象的依赖资源 注入:指的是Bean对象所依赖的资源,由配置容器来设置和装配 Set注入 要求被注入的属性,必须要有set方法,set方法的方法名是由set+属性首字母大写,如果属性是boolean类型,1没有set属性,是 ...
分类:
编程语言 时间:
2021-06-28 19:41:50
阅读次数:
0
1、SpringMVC自动配置概览 Spring Boot provides auto-configuration for Spring MVC that works well with most applications.(大多场景我们都无需自定义配置) The auto-configuratio ...
分类:
编程语言 时间:
2021-06-28 19:31:50
阅读次数:
0
之前用Ubuntu虚拟机来编译鸿蒙源码,听说DevEco Device Tool 2.2 Beta1可以在Windows一站式编译。马上尝尝。 1 准备工作 参考社区的文档 参考官网文档,部署Windows环境 上官网下载HUAWEI DevEco Device Tool 2.2 Beta1,简称D ...