Skip to content

TurboChow/SpringBoot-Scala

Repository files navigation

SpringBoot-Scala

required

  • Scala 2.1*
  • JDK 1.8
  • Gradle 4.*
  • Mysql8.0

configuration

application.properties

#spring.datasource.url: jdbc:hsqldb:mem:scratchdb
#logging.file: /tmp/logs/app.log
#datasource
spring.datasource.url = jdbc:mysql://localhost:3306/sss
spring.datasource.username = root
spring.datasource.password = root
spring.datasource.driverClassName = com.mysql.jdbc.Driver
# Specify the DBMS
spring.jpa.database = MYSQL
# Show or not log for each sql query
spring.jpa.show-sql = true
# Hibernate ddl auto (create, create-drop, update)
spring.jpa.hibernate.ddl-auto = update
# stripped before adding them to the entity manager)
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
# Server port
server.port=8080

users.sql

init database

build

  • git clone git@github.com:ColonelChow/SpringBoot-Scala.git
  • gradle bootRun

test

About

SpringBoot+Scala+Gradle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published