(fake)百度贴吧,SpringBoot BackEnd
spring-boot-starterspring-boot-starter-data-jpamysql-connector-javaspring-boot-starter-securitylombokspring-boot-maven-plugin
JDK 1.8MySQL 5.7
IDEAlombokIDEA Plugin
git clone https://github.com/postbar/PostBarServer.git
cd PostBarServer
# In IDEA
maven installGenerated 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.jarGPL-3.0