项目开发过程注意事项

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

项目开发流程及注意事项一、开发环境

(1)开发工具:eclipse

(2)数据库:Oracle

(3)导入代码格式化模板

1. java代码格式化模板

导入java_formatter.xml

Window→Preferences→Java→Code Style→Formatter→Import Profile

2. javascript代码格式化模板

导入javascript_formatter.xml

Window→Preferences→JavaScript→Code Style→Formatter→Import Profile

二、开发流程及注意事项

(1)创建数据库

1.建立表空间

create tablespace tablespace_name

logging

datafile 'D:\oracle\Administrator\oradata\orcl\tablespace_name.dbf'

size 200m

autoextend on

next 10m maxsize unlimited

extent management local;

2.建立数据库用户

create user user_name identified by user_password

default tablespace tablespace_name ;

grant connect,resource to user_name ;

grant dba to user_name ;

3.为用户分配表空间

revoke unlimited tablespace from user_name ;

alter user user_name quota unlimited on tablespace_name ;

4.创建项目开发所需表

create table table_name(

column_name data_type

)

创建表也可以使用PL/SQL Developer 工具通过图形界面来创建表.

(2)后台代码编写(SpringMVC+Mybatis )

1.通过配置文件自动生成domain dao 和数据库映射文件

配置mars →src →marsGeneratorConfig.xml 文件

PUBLIC "-////DTD MyBatis Generator Configuration 1.0//EN"

"/dtd/mybatis-generator-config_1_0.dtd">

数据库连接需要

的jar 包

connectionURL ="jdbc:oracle:thin:@127.0.0.1:1521:orcl"

userId="mars " password="mars ">

type ="XMLMAPPER" targetProject =".">

jdbc 配置参数

domain 生成位置路径 数据库映射文件生成位置路径 dao 生成位置路径 数据库表配置 事先创建一个序列

目标项目路径 方法的可见性 首字母大写