README.md
Smart Sample
运行环境
- JDK 1.6
- MySQL 5.5
- Tomcat 7.0
使用方法
- 打开 src/main/resources/config.properties 文件,配置数据库相关信息。
- 在 MySQL 中创建数据库。
- 执行 doc/sample.sql 脚本。
- 将 smart-sample 应用部署到 Tomcat 中(可在 IDE 中部署或独立部署)。
- 访问应用:http://[host]:[port]/smart-sample/
注意:若需要更改 Context Path,请修改 src/webapp/www/asset/script/global.js 中的 BASE 全局变量。 比如,若想以 ROOT 来发布应用,即使用 http://[host]:[port]/ 来访问应用,则需将 BASE 修改为空字符串。
Smart 依赖包
- Smart Framework: http://git.oschina.net/huangyong/smart-framework
- Smart Cache Plugin: http://git.oschina.net/huangyong/smart-plugin-cache
- Smart WebService Plugin: http://git.oschina.net/huangyong/smart-plugin-ws
- Smart I18N Plugin: http://git.oschina.net/huangyong/smart-plugin-i18n
请自行下载以上 Smart 依赖包源码,使用 Maven 命令“mvn install”将这些依赖包安装到 Maven 本地仓库中。
Smart Sample for Eclipse
导入 Eclipse,可直接运行!
http://git.oschina.net/coxapp/smart-sample
Smart Sample 在线示例