1. 程式人生 > >Web-專案_雲筆記-專案簡介和環境搭建

Web-專案_雲筆記-專案簡介和環境搭建

目錄

 

專案簡介:

專案概述:

模組劃分:

設計思想:

技術架構:

整體規範:

 

建立雲筆記專案環境


專案簡介:

專案概述:

雲筆記,用於客戶進行線上學習記錄,分享,收藏筆記,以及參與社群活動

模組劃分:

-使用者模組

-筆記本模組

-筆記模組

-分享/收藏功能

-回收模組

-活動模組

設計思想:

MVC設計思想

表現層:html + css + jQuery + ajax

控制層:springmvc

業務層:service元件

持久層:Dao元件

技術架構:

1.開發環境:win10 + Tomcat + mysql

2.採用技術:java + jQuery+ajax+springmvc

                     IOC + AOP + mybatis

                     java:開發核心技術

                     jQuery:簡化前端JavaScript($物件和API)

                     ajax:區域性處理頁面,提升使用者體驗度

                     spring:(IOC/AOP):管理相關元件

                     IOC:負責管理Controller/service/dao,維護它們之間的關係

                     AOP:面向切面程式設計,不修改原有程式碼,給系統增加新的功能

                     mybatis:對資料庫進行操作

整體規範:

1.所有的請求ajax方式訪問

2.前端頁面採用HTML

3.請求結果進行JSON響應

 

 

 

建立雲筆記專案環境

1.導包

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.tarena</groupId>
  <artifactId>cloud_note</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <packaging>war</packaging>
  <dependencies>
  	  	<dependency>
  		<groupId>junit</groupId>
  		<artifactId>junit</artifactId>
  		<version>4.12</version>
  	</dependency>
  	  	<dependency>
  		<groupId>org.springframework</groupId>
  		<artifactId>spring-webmvc</artifactId>
  		<version>3.2.8.RELEASE</version>
  	</dependency>
  	  	<dependency>
  		<groupId>commons-dbcp</groupId>
  		<artifactId>commons-dbcp</artifactId>
  		<version>1.4</version>
  	</dependency>
  	  	<dependency>
  	  		<groupId>org.springframework</groupId>
  	  		<artifactId>spring-jdbc</artifactId>
  	  		<version>3.2.8.RELEASE</version>
  	  	</dependency>
  	  	<dependency>
  	  		<groupId>mysql</groupId>
  	  		<artifactId>mysql-connector-java</artifactId>
  	  		<version>5.1.37</version>
  	  	</dependency>
  	  	  	<dependency>
  		<groupId>org.mybatis</groupId>
  		<artifactId>mybatis</artifactId>
  		<version>3.3.0</version>
  	</dependency>
  	  	  	<dependency>
  	  		<groupId>org.mybatis</groupId>
  	  		<artifactId>mybatis-spring</artifactId>
  	  		<version>1.2.2</version>
  	  	</dependency>
  	<dependency>
  		<groupId>org.springframework</groupId>
  		<artifactId>spring-webmvc</artifactId>
  		<version>3.2.8.RELEASE</version>
  	</dependency>
  	<dependency>
  		<groupId>com.fasterxml.jackson.core</groupId>
  		<artifactId>jackson-annotations</artifactId>
  		<version>2.2.3</version>
  	</dependency>
  	  	<dependency>
  		<groupId>com.fasterxml.jackson.core</groupId>
  		<artifactId>jackson-databind</artifactId>
  		<version>2.2.3</version>
  	</dependency>
  	  	<dependency>
  		<groupId>com.fasterxml.jackson.core</groupId>
  		<artifactId>jackson-core</artifactId>
  		<version>2.2.3</version>
  	</dependency>
  </dependencies>
</project>

2.新增配置檔案

- conf/spring-mvc.xml

- conf/spring-mybatis.xml

- mapper/SQL檔案

- web.xml

3.劃分包結構

- cn.tedu.cloud_note.dao

- cn.tedu.cloud_note.service

- cn.tedu.cloud_note.controller

- cn.tedu.cloud_note.entity

- cn.tedu.cloud_note.util

4.UI設計(匯入html檔案)