首页 > 其他 > 详细

cloud_note项目

时间:2017-05-18 00:49:33      阅读:413      评论:0      收藏:0      [点我收藏+]

导入mysql数据库:

set names utf8;

source cloud_note.sql

 

1.搭建springMvc+springIOc+Mybatis

--引入jar包

ioc,aop,dao,webmvc,json

mybatis+mysql驱动+dbcp

mybatis-spring.jar

--引入配置文件

applicationContext.xml

 


 

aopalliance-1.0.jar
aspectjweaver-1.7.1.jar
commons-collections-3.2.2.jar
commons-dbcp-1.2.2.jar
commons-logging-1.2.jar
commons-pool-1.3.jar
jackson-annotations-2.2.1.jar
jackson-core-2.2.1.jar
jackson-databind-2.2.1.jar
mybatis-3.2.6.jar
mybatis-spring-1.2.2.jar
mysql-connector-java-5.1.40-bin.jar
spring-aop-4.0.2.RELEASE.jar
spring-aspects-4.0.2.RELEASE.jar
spring-beans-4.0.2.RELEASE.jar
spring-context-4.0.2.RELEASE.jar
spring-core-4.0.2.RELEASE.jar
spring-expression-4.0.2.RELEASE.jar
spring-jdbc-4.0.2.RELEASE.jar
spring-tx-4.0.2.RELEASE.jar
spring-web-4.0.2.RELEASE.jar
spring-webmvc-4.0.2.RELEASE.jar


 

 

2.登陆设计

a。客户端

1)发送Ajax请求

--啥时候发送请求(点击登陆密码)

--发送什么信息(用户名和密码)

2)Ajax回调处理

--登录成功,进入edit.html

--登录失败,停留在log_in.html,显示错误提示

b。服务器端

接受请求返回Json

/user/login.do

-->DispatcherServlet

-->HandlerMapping

-->LoginController.execute

-->UserDao-->cn_user数据表(查询)

-->返回json结果

 

cloud_note项目

原文:http://www.cnblogs.com/alexhjl/p/6870157.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!