【实例简介】
项目采用MVC分层结构, 使用Ajax异步请求技术实现校验用户名唯一性的功能
【实例截图】
【核心代码】
ajaxDemo
└── ajaxDemo
├── build
│ └── classes
│ └── com
│ └── yl
│ ├── dao
│ │ └── UserDao.class
│ ├── daoimpl
│ │ └── UserDaoImpl.class
│ ├── db
│ │ ├── db.proterties
│ │ └── DBUtil.class
│ ├── entity
│ │ └── User.class
│ ├── filter
│ │ └── CharFilter.class
│ ├── service
│ │ └── UserService.class
│ ├── servlet
│ │ └── CheckUserNameServlet.class
│ └── utils
│ └── JsonUtil.class
├── sql
│ └── tb_user.sql
├── src
│ └── com
│ └── yl
│ ├── dao
│ │ └── UserDao.java
│ ├── daoimpl
│ │ └── UserDaoImpl.java
│ ├── db
│ │ ├── db.proterties
│ │ └── DBUtil.java
│ ├── entity
│ │ └── User.java
│ ├── filter
│ │ └── CharFilter.java
│ ├── service
│ │ └── UserService.java
│ ├── servlet
│ │ └── CheckUserNameServlet.java
│ └── utils
│ └── JsonUtil.java
└── WebContent
├── bootstrap
│ ├── css
│ │ ├── bootstrap.css
│ │ ├── bootstrap.css.map
│ │ ├── bootstrap.min.css
│ │ ├── bootstrap-theme.css
│ │ ├── bootstrap-theme.css.map
│ │ └── bootstrap-theme.min.css
│ ├── fonts
│ │ ├── glyphicons-halflings-regular.eot
│ │ ├── glyphicons-halflings-regular.svg
│ │ ├── glyphicons-halflings-regular.ttf
│ │ ├── glyphicons-halflings-regular.woff
│ │ └── glyphicons-halflings-regular.woff2
│ └── js
│ ├── bootstrap.js
│ ├── bootstrap.min.js
│ └── npm.js
├── css
│ └── style.css
├── index.jsp
├── js
│ └── jquery-3.2.1.js
├── META-INF
│ └── MANIFEST.MF
└── WEB-INF
├── lib
│ ├── jackson-annotations-2.8.2.jar
│ ├── jackson-core-2.8.2.jar
│ ├── jackson-databind-2.8.2.jar
│ └── ojdbc7.jar
└── web.xml
35 directories, 42 files