学习笔记
唯己
这个作者很懒,什么都没留下…
展开
-
ssm配置文件
WEB-INF下1.web.xml<?xml version="1.0" encoding="UTF-8"?><web-app> version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee原创 2021-07-16 21:28:34 · 56 阅读 · 0 评论 -
spring表单校验(判断表单输入是否合法)
1.在pom.xml添加依赖 <dependency> <groupId>org.hibernate.validator</groupId> <artifactId>hibernate-validator</artifactId> <version>6.1.7.Final</version> </dependency>2.在实体类中添加判断条件@D原创 2021-07-16 21:22:36 · 313 阅读 · 0 评论 -
spring文件上传
1.web.xml(添加)<web-app><!--1.在web-app标签下添加命名空间--> version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com原创 2021-07-16 21:15:17 · 88 阅读 · 0 评论 -
mybatis-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:mybatis="http://mybatis.org/schema/mybatis原创 2021-07-12 22:33:12 · 98 阅读 · 0 评论 -
Mybatis操作数据库增删改查
项目结构mybatisMapprt.xml<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"><mapper namespace="com.rr.tt.mybatis.v1.dao"&g...原创 2021-07-12 22:25:12 · 133 阅读 · 0 评论 -
Spring AOP(注解)
项目结构:AppConfig.javapackage com.rr.tt.test.springD.config;import org.springframework.context.annotation.ComponentScan;import org.springframework.context.annotation.Configuration;import org.springframework.context.annotation.EnableAspectJAutoPro.原创 2021-07-12 22:04:54 · 50 阅读 · 0 评论 -
SSM maven pom.xml配置
<?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:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/ma.原创 2021-07-12 21:56:00 · 121 阅读 · 0 评论