Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lslxy1021/DYB

斗鱼弹幕Demo
https://github.com/lslxy1021/DYB

database douyu-barrages java mysql

Last synced: 14 days ago
JSON representation

斗鱼弹幕Demo

Awesome Lists containing this project

README

        

# DYB
**斗鱼弹幕信息获取**
===================

Based on **java** and Douyu official Api ,dynamically request **DOUYU's( a live web site )** barrage information.

Screenshots
-------------
![image](http://github.com/lslxy1021/DYB/raw/master/images/dmchart.png)

![image](http://github.com/lslxy1021/DYB/raw/master/images/dmtable.png)

Environment
-------------

- IDE : Intellij IDEA
- JDK Version : 1.6 or later
- Dynamic Chart : Highcharts JS v5.0.12
- JQuery : 3.2.1
- Bootstrap : 3.3.7
- Java template engine : Thymeleaf 1.5.6
- Database : MySQL Workbench Community (GPL)

Start
-------------
- Run DanMuApplication.java
- Enter url in the browser : localhost:8081/danmu.

**pom.xml**
-------------------



4.0.0

com.example
DanMu
1.0-SNAPSHOT
jar

DanMu
This is a DanMu demo


org.springframework.boot
spring-boot-starter-parent
1.5.6.RELEASE



UTF-8
UTF-8
1.8




org.springframework.boot
spring-boot-starter



org.springframework.boot
spring-boot-starter-web



org.springframework.boot
spring-boot-starter-test
test



org.apache.commons
commons-lang3
3.3.2



log4j
log4j
1.2.14



org.springframework.boot
spring-boot-starter-data-jpa



mysql
mysql-connector-java



org.springframework.boot
spring-boot-starter-thymeleaf



com.google.code.gson
gson
2.3.1






org.springframework.boot
spring-boot-maven-plugin





**application.yml**
-------------------

server:
port: 8081
spring:
thymeleaf:
mode: HTML5
datasource:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/test?useSSL=false
username: test001
password: test001
jpa:
hibernate:
ddl-auto: update
show-sql: false

> **Note:**

> - To create this project,File->new->project->Spring Initializr.
> - You need to change roomId in StartFirst.java
> - Create a database called "test" in MySQL before start the project.
> - Web page must be active, otherwise it will get incorrect results
> - You may need to delete "target" file to avoid possible error.