摘要:
package cn.kgc.test;import cn.kgc.pojo.Customer;import org.junit.*;import javax.persistence.*;import java.util.List;public class CustomerTest { privat 阅读全文
摘要:
【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 阅读全文
摘要:
-- 作业部分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))-- 部门表的数 阅读全文
摘要:
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 阅读全文
摘要:
package cn.kgc.updatefile;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.RequestMapping;import org.sp 阅读全文
摘要:
<dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>5.0.2.RELEASE</version> </dependen 阅读全文
摘要:
<dependencies> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.6</version> </dependency> <dependency> 阅读全文
摘要:
sqlMappConfig.xml 配置数据库,映射文件路径,开启注解 阅读全文
摘要:
sqlMappConfig.xml配置文件 配置数据库查询语句的创建 阅读全文
摘要:
安全框架登录验证public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException { SysUser sysUser = sysUserDao.findUserByUsername(user 阅读全文
摘要:
配置文件<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-insta 阅读全文
摘要:
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 阅读全文
摘要:
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 阅读全文
摘要:
<properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.tar 阅读全文
摘要:
引用依赖<properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.hibernate.version>5.0.7.Final</project.hibernate.version> 阅读全文