# SpringBoot-Scala **Repository Path**: kokoko/SpringBoot-Scala ## Basic Information - **Project Name**: SpringBoot-Scala - **Description**: 可以说近几年Spark的流行带动了Scala的发展,它集成了面向对象编程和函数式编程的各种特性,Scala具有更纯Lambda表粹的函数式业务逻辑解决方案,其语法比Java8后Lambda更加简洁方便,SpringBoot为Spring提供了一种更加方便快捷的方式,不再要求写大量的配置文件,作为一名Scala爱好者,使用SpringBoot结合Scala将大大节省我们开发的时间以及代码量 - **Primary Language**: Scala - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2018-02-12 - **Last Updated**: 2020-12-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## SpringBoot-Scala [关于项目搭建以及项目结构](http://blog.csdn.net/qq_20545159/article/details/54173163) ###required * Scala 2.1* * JDK 1.8* * Gradle 3.* * Mysql 5.1* ###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 https://github.com/silence940109/SpringBoot-Scala.git * gradle bootRun ###test * curl http://localhost:8080/list * curl http://localhost:8080/find/2 * curl -d "name=silence&telephone=15345678960&birthday=1994-06-24" http://localhost:8080/save * curl -d null http://localhost:8080/delete/505 * curl http://localhost:8080/page?pageSize=6\&page=5 ![](https://github.com/silence940109/Java/blob/master/SpringBoot-Scala/image/springboot-scala.jpg)