This commit is contained in:
Yutousama 2024-11-03 19:54:13 +08:00
parent 3b190b8a44
commit 3e694a43cc
5 changed files with 19 additions and 48 deletions

51
pom.xml
View File

@ -57,11 +57,6 @@
<artifactId>sqlite-jdbc</artifactId>
<version>3.36.0.3</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<scope>annotationProcessor</scope>
</dependency>
<dependency>
<groupId>org.java-websocket</groupId>
<artifactId>Java-WebSocket</artifactId>
@ -125,6 +120,13 @@
<artifactId>log4j-core</artifactId>
<version>2.24.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.34</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
@ -132,25 +134,6 @@
<testSourceDirectory>${project.basedir}/src/test/java</testSourceDirectory>
<outputDirectory>${project.basedir}/target/classes</outputDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<!--<executions>
<execution>
<phase>test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<echo>复制正式文件</echo>
<copy file="src/main/resources/application.properties.release" tofile="${project.build.outputDirectory}/application.properties" overwrite="true"/>
</tasks>
</configuration>
</execution>
</executions>-->
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
@ -160,25 +143,23 @@
<!-- 指定该jar包启动时的主类[建议] -->
<mainClass>com.yutou.BilibiliApplication</mainClass>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>repackage</goal>
</goals>
<configuration>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>21</source>
<target>21</target>
<encoding>UTF-8</encoding>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.34</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>

View File

@ -180,7 +180,7 @@ public class WebSocketManager {
@Override
public void onMessage(ByteBuffer bytes) {
Log.i("WebSocketClientTh.onMessage: " + roomConfig.getAnchorName());
// Log.i("WebSocketClientTh.onMessage: " + roomConfig.getAnchorName());
super.onMessage(bytes);
decompress(bytes.array());
}
@ -223,7 +223,7 @@ public class WebSocketManager {
}
private void danmu(byte[] bytes) {
Log.i("未压缩:" + new String(bytes));
//Log.i("未压缩:" + new String(bytes));
}
private void unzipDanmu(byte[] bytes, boolean useHeader) {

View File

@ -74,7 +74,6 @@ public class VideoFileController {
public String getTmpImg(String url) {
try {
// 获取图片流
System.out.println("url = " + url);
InputStream inputStream = new URL(url).openStream();
// 将输入流转换为字节数组

View File

@ -0,0 +1 @@
server.port=8880

View File

@ -1,10 +0,0 @@
server.port=8001
spring.datasource.url=jdbc:mysql://127.0.0.1/database?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true&serverTimezone=GMT%2B8&autoReconnect=true
spring.datasource.username=user
spring.datasource.password=password
mybatis.mapper-locations=classpath:mappers/*.xml
#mybatis.config-location=classpath:mybatis-config.xml
mybatis.type-aliases-package=com.yutou.tools.mybatis
#logging.level.com.yutou.bilibili=debug