摘要:
第一:login.jsp<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" & 阅读全文
摘要:
第一步:写个实体类:package com.spring.entity;import javax.persistence.Column;//import javax.persistence.GeneratedValue;//import javax.persistence.GenerationType;import javax.persistence.Id;@javax.persistence.Entity@javax.persistence.Table(name = "user")public class User { @Id /*@GeneratedValue(stra 阅读全文
摘要:
目录结构如下所示:第一步:创建数据库,sql脚本如下create database user;SET FOREIGN_KEY_CHECKS=0;-- ------------------------------ Table structure for user-- ----------------------------CREATE TABLE `user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(20) DEFAULT NULL, `password` varchar(20) DEFAULT NULL, P... 阅读全文