Upgrade play version to 2.5.5
This project is an use case for Play Framework 2 in real world, Play Framework is effective, mature and easy to use. But it was written by Scala, and looks difficult to those who only knew Java. If you are from Java world and want adopt Play Framework in your project, you can use this project as scaffold.
Play 2.5.5 + Spring 4.2.6 + Hibernate 4.3.6
1.JDK8+
2.Scala 2.11.8+
3.sbt 0.13.12+
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
If everything goes well, you could see this:
Open http://localhost:9000/ in your browser, you can see this page:
Enjoy!
Ps. I have some Chinese blogs to introduce Play :)