File tree Expand file tree Collapse file tree 4 files changed +21
-4
lines changed Expand file tree Collapse file tree 4 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ dependencies {
60
60
// implementation("com.googlecode.protobuf:protobuf-java-format:1.2")
61
61
62
62
implementation(" org.springframework.boot:spring-boot-starter-web" )
63
+ implementation(" org.springframework.boot:spring-boot-starter-security" )
63
64
implementation(" com.fasterxml.jackson.module:jackson-module-kotlin" )
64
65
implementation(" org.jetbrains.kotlin:kotlin-reflect" )
65
66
implementation(" org.jetbrains.kotlin:kotlin-stdlib-jdk8" )
Original file line number Diff line number Diff line change @@ -4,10 +4,9 @@ import net.lz1998.mirai.properties.ClientProperties
4
4
import org.springframework.boot.autoconfigure.SpringBootApplication
5
5
import org.springframework.boot.context.properties.EnableConfigurationProperties
6
6
import org.springframework.boot.runApplication
7
- import org.springframework.context.annotation.Bean
8
- import org.springframework.context.annotation.Configuration
9
- import org.springframework.http.converter.protobuf.ProtobufHttpMessageConverter
7
+ import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity
10
8
9
+ @EnableWebSecurity
11
10
@SpringBootApplication
12
11
@EnableConfigurationProperties(ClientProperties ::class )
13
12
class SpringMiraiClientApplication
Original file line number Diff line number Diff line change 2
2
port : 9000
3
3
bot :
4
4
client :
5
- ws-url : " ws://localhost:8081/ws/test/"
5
+ ws-url : " ws://localhost:8081/ws/test/"
6
+
7
+ spring :
8
+ security :
9
+ user :
10
+ name : admin
11
+ password : 123456
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="UTF-8 ">
5
+ < title > 机器人管理</ title >
6
+ </ head >
7
+ < body >
8
+ < div > 请检查前端文件是否缺失。</ div >
9
+ < div > 可以去< a href ="https://github.com/protobufbot/spring-mirai-client-ui "> 这里</ a > 找到前端项目。</ div >
10
+ </ body >
11
+ </ html >
You can’t perform that action at this time.
0 commit comments