This project is an use case for Play Framework 2 in real world. 农科项目server端
Play 2.4.2 + Spring 4.1.6 + Hibernate 4.3.6
1.JDK8+
2.Scala 2.11.6+
3.sbt 0.13.7+
4.MySQL 5.5+ or MariaDB 10+
5.Redis 2.7+
- admin:web module
- common:utility module
- order-center: business logic module
- project: sbt build directory
Run PATH/docs/test-object.sql in you MySQL terminal:
create database play; source /PATH/docs/test-object.sql -- change it to your path Open PATH/admin/conf/application.conf, replace this with your own configuration:
db.default { driver = com.mysql.jdbc.Driver url = "jdbc:mysql://localhost:3306/play?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull" username = root password = "root" ... redis { host = 127.0.0.1 port = 6379 ... Open your favorite terminal, input this:
cd /PATH # change it to your project path sbt project admin run Open http://localhost:9000/ in your browser.