(fake)百度贴吧,SpringBoot BackEnd
spring-boot-starter
spring-boot-starter-data-jpa
mysql-connector-java
spring-boot-starter-security
lombok
spring-boot-maven-plugin
JDK 1.8
MySQL 5.7
IDEA
lombok
IDEA Plugin
git clone https://github.com/postbar/PostBarServer.git
cd PostBarServer
# In IDEA
maven install
Generated jar package: PostBarServer/target/pbserver-0.0.1-SNAPSHOT.jar
Or Download Release
MySQL 5.7
is required for PostBarServer
Build your own configuration with an application.properties file
# in application.properties
spring.datasource.driver-class-name = com.mysql.jdbc.Driver
server.port = 8088 # default server port
spring.jpa.database = MYSQL
spring.jpa.show-sql = true
spring.jpa.hibernate.ddl-auto = update # use 'create' at first run
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5InnoDBDialect
spring.datasource.username = [your mysql username]
spring.datasource.password = [your mysql password]
spring.datasource.url = jdbc:mysql://localhost:3306/[your database name]?useUnicode=true&characterEncoding=utf8
spring.datasource.type = com.zaxxer.hikari.HikariDataSource
spring.datasource.hikari.connection-init-sql = SET NAMES utf8mb4 # utf8mb4 support emoji
logging.level.org.springframework.web=ERROR
java jar -Dspring.config.location=./application.properties pbserver-0.0.1-SNAPSHOT.jar
GPL-3.0