From 956e0cf644dacdd315964b9f0f08b1dfa783e52b Mon Sep 17 00:00:00 2001 From: lishengzhao Date: Fri, 18 Apr 2014 13:11:54 +0800 Subject: [PATCH] exclude properties and add how to use --- others/how_to_use.txt | 26 ++++++++++++++++++++++++++ pom.xml | 4 ++-- 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 others/how_to_use.txt diff --git a/others/how_to_use.txt b/others/how_to_use.txt new file mode 100644 index 0000000..67ed3c3 --- /dev/null +++ b/others/how_to_use.txt @@ -0,0 +1,26 @@ + + +使用的主要技术与版本号 +*Spring (3.1.1.RELEASE) +*Spring Security (3.1.0.RELEASE) +*MyBatis (3.2.1) +*spring-security-oauth2 (1.0.5.RELEASE) + + +如何使用? +1.项目是Maven管理的, 需要本地安装maven(开发用的maven版本号为3.1.0), 还有MySql(开发用的mysql版本号为5.5) + +2.下载(或clone)项目到本地 + +3.创建MySQL数据库(如数据库名oauth2), 并运行相应的SQL脚本(脚本文件位于others/database目录), + 运行脚本的顺序: initial_db.ddl -> oauth.ddl -> initial_data.ddl + +4.修改spring-oauth-server.properties(位于src/resources目录)中的数据库连接信息(包括username, password等) + +5.将本地项目导入到IDE(如Intellij IDEA)中,配置Tomcat(或类似的servelt运行服务器), 并启动Tomcat(默认端口为8080) + 另: 也可通过maven package命令将项目编译为war文件(spring-oauth-server.war), + 将war放在Tomcat中并启动(注意: 这种方式需要将spring-oauth-server.properties加入到classpath中并正确配置数据库连接信息). + +6.参考oauth_test.txt(位于others目录)的内容并测试之(也可在浏览器中访问相应的地址,如: http://localhost:8080/spring-oauth-server). + + diff --git a/pom.xml b/pom.xml index 02383db..f2f319a 100644 --- a/pom.xml +++ b/pom.xml @@ -56,6 +56,7 @@ maven-war-plugin 2.0.2 + */classes/spring-oauth-server.properties @@ -152,8 +153,7 @@ - database.properties - mail.properties +