Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
后端镜像
java镜像
Springside4
提交
d6fcfcea
S
Springside4
项目概览
后端镜像
/
java镜像
/
Springside4
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Springside4
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d6fcfcea
编写于
2月 24, 2012
作者:
C
Calvin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
让quick-start.bat跑利索了
上级
ae0a801e
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
65 addition
and
24 deletion
+65
-24
.gitignore
.gitignore
+3
-0
TODO.txt
TODO.txt
+1
-1
bin/generate-project.bat
bin/generate-project.bat
+0
-14
examples/showcase/src/main/resources/applicationContext.xml
examples/showcase/src/main/resources/applicationContext.xml
+0
-3
pom.xml
pom.xml
+3
-3
quick-start.bat
quick-start.bat
+52
-0
support/h2/pom.xml
support/h2/pom.xml
+4
-1
support/maven-archetype/pom.xml
support/maven-archetype/pom.xml
+2
-2
未找到文件。
.gitignore
浏览文件 @
d6fcfcea
...
@@ -32,3 +32,6 @@
...
@@ -32,3 +32,6 @@
/modules/extension/.classpath
/modules/extension/.classpath
/modules/extension/.project
/modules/extension/.project
/modules/extension/.settings/org.eclipse.jdt.core.prefs
/modules/extension/.settings/org.eclipse.jdt.core.prefs
/support/maven-archetype/target/
/support/maven-archetype/.settings/
/support/maven-archetype/.project
\ No newline at end of file
TODO.txt
浏览文件 @
d6fcfcea
...
@@ -72,7 +72,7 @@ TODO部分:
...
@@ -72,7 +72,7 @@ TODO部分:
* 用JUnit自带的Catetory的演示
* 用JUnit自带的Catetory的演示
* 升级Selenium到最新版, 使用自带的Wait类
* 升级Selenium到最新版, 使用自带的Wait类
* 升级Jquery-validation用法
* 升级Jquery-validation用法
*
Cleanup 代码Header中SVN相关的部分
*
安全部分加入salt
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
...
...
bin/generate-project.bat
已删除
100644 → 0
浏览文件 @
ae0a801e
@echo
off
echo
[
INFO
]
确保已用mvn
install
安裝tools\maven\archetype中的mini
-web
項目模板
set
MVN
=
mvn
if
exist
"tools\maven\apache-maven-3.0.2\"
set
MVN
=
"
%cd%
\tools\maven\apache-maven-3.0.2\bin\mvn.bat"
echo
Maven
命令为
%MVN%
mkdir
generated
-projects
cd
generated
-projects
call
mvn
archetype
:generate
-DarchetypeCatalog
=
local
pause
examples/showcase/src/main/resources/applicationContext.xml
浏览文件 @
d6fcfcea
...
@@ -26,9 +26,6 @@
...
@@ -26,9 +26,6 @@
<!-- 使用annotation 自动注册bean,并检查@Required,@Autowired的属性已被注入 -->
<!-- 使用annotation 自动注册bean,并检查@Required,@Autowired的属性已被注入 -->
<context:component-scan
base-package=
"org.springside.examples.showcase"
/>
<context:component-scan
base-package=
"org.springside.examples.showcase"
/>
<!-- 以静态变量保存ApplicationContext -->
<bean
class=
"org.springside.modules.utils.spring.SpringContextHolder"
lazy-init=
"false"
/>
<!-- 数据源配置,使用应用内的DBCP数据库连接池 -->
<!-- 数据源配置,使用应用内的DBCP数据库连接池 -->
<bean
id=
"dataSource"
class=
"org.apache.commons.dbcp.BasicDataSource"
destroy-method=
"close"
>
<bean
id=
"dataSource"
class=
"org.apache.commons.dbcp.BasicDataSource"
destroy-method=
"close"
>
<!-- Connection Info -->
<!-- Connection Info -->
...
...
pom.xml
浏览文件 @
d6fcfcea
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
org.springside
</groupId>
<groupId>
org.springside
</groupId>
<artifactId>
springside
</artifactId>
<artifactId>
springside
</artifactId>
<version>
4.0.0-SNAPSHOT
</version>
<version>
4.0.0
.RC1
-SNAPSHOT
</version>
<name>
Springside
</name>
<name>
Springside
</name>
<packaging>
pom
</packaging>
<packaging>
pom
</packaging>
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<module>
examples/mini-service
</module>
<module>
examples/mini-service
</module>
<module>
examples/mini-web
</module>
<module>
examples/mini-web
</module>
<module>
examples/showcase
</module>
<module>
examples/showcase
</module>
<module>
tools/maven/
archetype
</module>
<module>
support/maven-
archetype
</module>
</modules>
</modules>
</profile>
</profile>
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<module>
modules/parent
</module>
<module>
modules/parent
</module>
<module>
modules/core
</module>
<module>
modules/core
</module>
<module>
modules/extension
</module>
<module>
modules/extension
</module>
<module>
tools/maven/
archetype
</module>
<module>
support/maven-
archetype
</module>
</modules>
</modules>
</profile>
</profile>
</profiles>
</profiles>
...
...
bin/
quick-start.bat
→
quick-start.bat
浏览文件 @
d6fcfcea
@echo
off
@echo
off
echo
[
INFO
]
确保默认JDK版本为JDK6.0及以上版本
,
已配置JAVA_HOME.
echo
[
Pre
-Requirement
]
Makesure
install
JDK
6
.0
+
and
set
the
JAVA_HOME
.
echo
[
Pre
-Requirement
]
Makesure
install
Maven
3
.0
+,
Ant
1
.8
+
and
set
the
PATH
.
echo
[
Pre
-Requirement
]
Makesure
download
the
maven
-ant-tasks
.jar
and
put
it
in
Ant
's lib dir.
set MVN=mvn
set MVN=mvn
set ANT=ant
set ANT=ant
set MAVEN_OPTS=
%MAVEN_OPTS%
-XX:MaxPermSize=128m
set MAVEN_OPTS=
%MAVEN_OPTS%
-XX:MaxPermSize=128m
if
exist
"tools\maven\apache-maven-3.0.3\"
set
MVN
=
"
%cd%
\tools\maven\apache-maven-3.0.3\bin\mvn.bat"
echo [Step 1] Install all springside modules to local maven repository, and generate eclipse files to all projects.
if
exist
"tools\ant\apache-ant-1.8.2\"
set
ANT
=
"
%cd%
\tools\ant\apache-ant-1.8.2\bin\ant.bat"
echo
Maven
命令为
%MVN%
echo
Ant
命令为
%ANT%
echo
[
Step
1
]
安装SpringSide 所有modules到本地Maven仓库
,
为所有项目生成Eclipse项目文件.
call
%MVN%
clean install -Pmodules -Dmaven.test.skip=true
call
%MVN%
clean install -Pmodules -Dmaven.test.skip=true
if errorlevel 1 goto error
if errorlevel 1 goto error
call
%MVN%
-Pall eclipse:clean eclipse:eclipse
call
%MVN%
-Pall eclipse:clean eclipse:eclipse
if errorlevel 1 goto error
if errorlevel 1 goto error
echo
[
Step
2
]
启动H2数据库
.
echo [Step 2]
Start H2 Standalone database
.
cd
tools
/h
2
cd
support
/h2
start
"H2"
%MVN%
exec
:java
-PwithoutBrowser
start "H2
Database
"
%MVN%
exec:java -PwithoutBrowser
cd ..\..\
cd ..\..\
echo
[
Step
3
]
为Mini
-Service
初始化数据库
,
启动J
etty.
echo [Step 3]
Mini-Service:init database data and start j
etty.
cd examples\mini-service
cd examples\mini-service
call
%ANT%
-f bin/db/build.xml init-db
call
%ANT%
-f bin/db/build.xml init-db
if errorlevel 1 goto error
if errorlevel 1 goto error
start
"Mini-Service"
%MVN%
jetty
:run
-Djetty
.port
=
808
3
start "Mini-Service"
%MVN%
jetty:run -Djetty.port=808
2
cd ..\..\
cd ..\..\
echo
[
Step
4
]
为Mini
-Web
初始化数据库
,
启动J
etty.
echo [Step 4]
Mini-Web:init database data and start j
etty.
cd examples\mini-web
cd examples\mini-web
call
%ANT%
-f bin/db/build.xml init-db
call
%ANT%
-f bin/db/build.xml init-db
if errorlevel 1 goto error
if errorlevel 1 goto error
start
"Mini-Web"
%MVN%
jetty
:run
-Djetty
.port
=
808
4
start "Mini-Web"
%MVN%
jetty:run -Djetty.port=808
1
cd ..\..\
cd ..\..\
echo
[
Step
5
]
为Showcase 生成Eclipse项目文件
,
编译
,
打包
,
初始化数据库
,
启动J
etty.
echo [Step 5]
Showcase:init database data and start j
etty.
cd examples\showcase
cd examples\showcase
call
%ANT%
-f bin/db/build.xml init-db
call
%ANT%
-f bin/db/build.xml init-db
if errorlevel 1 goto error
if errorlevel 1 goto error
start "Showcase"
%MVN%
jetty:run
start "Showcase"
%MVN%
jetty:run
cd ..\..\
cd ..\..\
echo
[
INFO
]
SpringSide4
.0
快速启动完毕
.
echo [INFO] SpringSide4.0
Quick Start finish
.
echo
[
INFO
]
可访问以下演示网址
:
echo [INFO]
Access below demo sites
:
echo
[
INFO
]
http
://localhost:808
3
/mini
-service
echo [INFO] http://localhost:808
2
/mini-service
echo
[
INFO
]
http
://localhost:808
4
/mini
-web
echo [INFO] http://localhost:808
1
/mini-web
echo [INFO] http://localhost:8080/showcase
echo [INFO] http://localhost:8080/showcase
goto end
goto end
:error
:error
echo
"有错误发生"
echo
Error Happen
!!!
Please check the Pre-Requirement.
:end
:end
pause
pause
\ No newline at end of file
support/h2/pom.xml
浏览文件 @
d6fcfcea
...
@@ -4,7 +4,8 @@
...
@@ -4,7 +4,8 @@
<parent>
<parent>
<artifactId>
springside-parent
</artifactId>
<artifactId>
springside-parent
</artifactId>
<groupId>
org.springside
</groupId>
<groupId>
org.springside
</groupId>
<version>
4.0.0-SNAPSHOT
</version>
<version>
4.0.0.RC1-SNAPSHOT
</version>
<relativePath>
../../modules/parent
</relativePath>
</parent>
</parent>
<groupId>
org.springside
</groupId>
<groupId>
org.springside
</groupId>
<artifactId>
h2-starts
</artifactId>
<artifactId>
h2-starts
</artifactId>
...
@@ -67,6 +68,8 @@
...
@@ -67,6 +68,8 @@
<arguments>
<arguments>
<argument>
-tcp
</argument>
<argument>
-tcp
</argument>
<argument>
-web
</argument>
<argument>
-web
</argument>
<argument>
-webPort
</argument>
<argument>
8090
</argument>
</arguments>
</arguments>
</configuration>
</configuration>
</plugin>
</plugin>
...
...
support/maven-archetype/pom.xml
浏览文件 @
d6fcfcea
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
<parent>
<parent>
<groupId>
org.springside
</groupId>
<groupId>
org.springside
</groupId>
<artifactId>
springside-parent
</artifactId>
<artifactId>
springside-parent
</artifactId>
<version>
4.0.0-SNAPSHOT
</version>
<version>
4.0.0
.RC1
-SNAPSHOT
</version>
<relativePath>
../../
../../
modules/parent
</relativePath>
<relativePath>
../../modules/parent
</relativePath>
</parent>
</parent>
<groupId>
org.springside
</groupId>
<groupId>
org.springside
</groupId>
<artifactId>
springside-mini-web-archetype
</artifactId>
<artifactId>
springside-mini-web-archetype
</artifactId>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录