Spring
文章平均质量分 71
Spring
允诺@晴天
这个作者很懒,什么都没留下…
展开
-
Spring——Aop面向切面编程
文章目录一、Spring 的 AOP 简介1.1 什么是 AOP1.2 AOP 的作用及其优势1.3 AOP 的底层实现1.4 AOP 的动态代理技术1.5 JDK 的动态代理1.6 cglib 的动态代理1.7 AOP 相关概念1.8 AOP 开发明确的事项1.9 知识要点二、基于 XML 的 AOP 开发2.1 简单操作2.2 XML 配置 AOP 详解2.3 知识要点三、基于注解的 AOP 开发3.1 基本操作3.2 注解配置 AOP 详解3.3 知识要点一、Spring 的 AOP 简介1.1原创 2022-04-11 19:54:31 · 2314 阅读 · 0 评论 -
SpringSecurity——HttpSecurity常用方法
文章目录HttpSecurity 常用方法及说明HttpSecurity常用方法详解antMatcher与antMatchers的区别以及使用场景requestMatchers()authorizeRequests()匹配规则URL匹配保护URL登录login登出logout多个antMatchers在SpringHttpSecurity 常用方法及说明通常我们在使用Spring Securty的时候会继 WebSecurityConfigurerAdapter,通过以下方法可配置拦截什么URL、设置原创 2022-01-28 16:45:00 · 9732 阅读 · 0 评论 -
SpringMVC拦截器
使用说明基础代码展示UserControllerpackage com.ljx.controller;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.servlet.ModelAndView;@Controllerpublic class Us.原创 2021-08-14 19:27:48 · 2268 阅读 · 0 评论 -
spring-jdbc
实体Userpackage org.ljx.domain;public class User { private String name; private String password; public String getName() { return name; } public void setName(String name) { this.name = name; } public Strin.原创 2021-08-07 21:48:45 · 2233 阅读 · 0 评论 -
SSM框架整合(Spring + SpringMVC + Mybatis)
前言ssm整合分为以下步骤 1、创建项目 2、导入依赖坐标 3、编写数据库 4、编写服务代码 5、编写配置文件 6、编写前端代码 7、运行代码创建maven工程导入依赖坐标pom.xml<dependencies><!-- spring相关--> <dependency> <groupId>org.springframewor.原创 2021-08-28 21:07:15 · 2230 阅读 · 0 评论 -
spring配置文件+依赖注入
applicationContext.xml<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" .原创 2021-07-31 22:10:12 · 2299 阅读 · 0 评论