JAVA web分层思想及maven web项目[持久层 (spring jdbc)业务层(spring)表现层(jsp)](探索中)(swb)
2014-09-06 10:15
453 查看
一、JAVA web分层思想
(待填充)二、Maven web项目
1、首先在本机ubuntu系统上安装mysql与mysql workbench
安装过程如下sudo apt-get install mysql-server
安装过程中随后设置mysql的密码
之后sudo apt-get install mysql-client
安装好之后使用终端进入mysql控制台
sudo apt-get install mysql-workbench
可能出现问题后的备用文档
http://www.cnblogs.com/wuhou/archive/2008/09/28/1301071.html http://blog.sina.com.cn/s/blog_799c8a0b0101a2t3.html
以及一些在终端操作数据库的最基本的操作
http://cycnet.blog.51cto.com/117809/812625/ (列举部分如下
删除某个数据库 :
DROP DATABASE IF EXISTS sampledb;
建立某个数据库 :
CREATE DATABASE sampledb DEFAULT CHARACTER SET utf8;
use sampledb;
在某个数据库(必须说明选择的数据库)中创建用户表 :
CREATE TABLE t_user(
user_id INT AUTO_INCREMENT PRIMARY KEY,
user_name VARCHAR(30),
password VARCHAR(32)
)ENGINE=InnoDB;
在该表下插入一条数据 :
INSERT INTO t_user(user_name,password) VALUES ('admin','123456');
COMMIT;
)
2、从最简单的java项目演示spring的Ioc和Aop开始
相关文章推荐
- 标准版eclipse配置J2EE插件,使用maven创建web项目(spring JDBC)
- 【SpringMVC系列二】 EasyUI+SpringMVC--Maven项目--WEB-INF安全目录访问jsp
- 【SpringMVC系列二】 EasyUI+SpringMVC--Maven项目--WEB-INF安全目录访问jsp
- 快速使用 maven 构建一个 spring web 项目
- maven 项目出现 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- 在maven项目中使用apache cxf中遇到异常 java.lang.ClassCastException: org.springframework.web.filter.CharacterEncodingFilter cannot be cast to javax.servlet.Filter
- intellij idea 12 搭建maven web项目 freemarker + spring mvc
- maven 项目出现 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- maven创建spring项目之后,启动报错java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoade
- maven项目 启动报错:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- maven 项目出现 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- maven+Spring简单web项目demo
- struts2+hibernate4+spring3+maven搭建项目:简单账务管理系统第四篇:action层和jsp表现层
- Eclipse&Maven导入Maven项目后在pom.xml出现"Missing artifact org.springframework:spring-jdbc:jar:3.2.4.RELEAS"
- Maven管理的Spring Web项目集成JUnit单元测试
- maven 项目出现 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- maven 项目出现 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- eclipse中创建maven项目, maven无法加载org.springframework.web.context.ContextLoaderListener
- Maven 创建java Web项目,配置Spring,CXF
- maven新建Spring MVC + MyBatis + Oracle的Web项目中pom.xml文件