2019年8月15日
摘要: package cn.kgc.test;import cn.kgc.pojo.Customer;import org.junit.*;import javax.persistence.*;import java.util.List;public class CustomerTest { privat 阅读全文
posted @ 2019-08-15 17:08 耿耿、余淮 阅读(1145) 评论(0) 推荐(0) 编辑
摘要: 【6】 正则表达式应用——实例应用1.验证用户名和密码:("^[a-zA-Z]\w{5,15}$")正确格式:"[A-Z][a-z]_[0-9]"组成,并且第一个字必须为字母6~16位;2.验证电话号码:("^(\d{3,4}-)\d{7,8}$")正确格式:xxx/xxxx-xxxxxxx/xxx 阅读全文
posted @ 2019-08-15 17:02 耿耿、余淮 阅读(145) 评论(0) 推荐(1) 编辑
摘要: -- 作业部分CREATE DATABASE dome_1 CREATE TABLE IF NOT EXISTS dept( d_no INT(11) PRIMARY KEY, d_name VARCHAR(50) NOT NULL, d_location VARCHAR(100))-- 部门表的数 阅读全文
posted @ 2019-08-15 17:01 耿耿、余淮 阅读(539) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 阅读全文
posted @ 2019-08-15 16:43 耿耿、余淮 阅读(164) 评论(0) 推荐(0) 编辑
摘要: package cn.kgc.updatefile;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.RequestMapping;import org.sp 阅读全文
posted @ 2019-08-15 16:43 耿耿、余淮 阅读(172) 评论(0) 推荐(0) 编辑
摘要: <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>5.0.2.RELEASE</version> </dependen 阅读全文
posted @ 2019-08-15 16:42 耿耿、余淮 阅读(420) 评论(0) 推荐(0) 编辑
摘要: <dependencies> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.6</version> </dependency> <dependency> 阅读全文
posted @ 2019-08-15 16:40 耿耿、余淮 阅读(3544) 评论(0) 推荐(0) 编辑
摘要: sqlMappConfig.xml 配置数据库,映射文件路径,开启注解 阅读全文
posted @ 2019-08-15 16:38 耿耿、余淮 阅读(217) 评论(0) 推荐(0) 编辑
摘要: sqlMappConfig.xml配置文件 配置数据库查询语句的创建 阅读全文
posted @ 2019-08-15 16:35 耿耿、余淮 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 安全框架登录验证public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException { SysUser sysUser = sysUserDao.findUserByUsername(user 阅读全文
posted @ 2019-08-15 16:20 耿耿、余淮 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 配置文件<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-insta 阅读全文
posted @ 2019-08-15 16:18 耿耿、余淮 阅读(605) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 阅读全文
posted @ 2019-08-15 16:14 耿耿、余淮 阅读(1130) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 阅读全文
posted @ 2019-08-15 16:13 耿耿、余淮 阅读(1346) 评论(0) 推荐(0) 编辑
摘要: <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.tar 阅读全文
posted @ 2019-08-15 15:51 耿耿、余淮 阅读(1268) 评论(0) 推荐(0) 编辑
摘要: 引用依赖<properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.hibernate.version>5.0.7.Final</project.hibernate.version> 阅读全文
posted @ 2019-08-15 15:43 耿耿、余淮 阅读(418) 评论(0) 推荐(0) 编辑