Archived
rewrite backend(init)
This commit is contained in:
1 parent
0424300796
commit
ed18b67b4c
10 files changed
+84
-19
No files matched your search
@@ -1,3 +1,4 @@
|
||||
README.md
|
||||
target/
|
||||
.mvn/wrapper/maven-wrapper.jar
|
||||
!**/src/main/**/target/
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
wrapperVersion=3.3.4
|
||||
distributionType=only-script
|
||||
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.14/apache-maven-3.9.14-bin.zip
|
||||
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.15/apache-maven-3.9.15-bin.zip
|
||||
@@ -5,10 +5,10 @@
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
<version>4.0.5-SNAPSHOT</version>
|
||||
<version>4.0.7-SNAPSHOT</version>
|
||||
<relativePath/> <!-- lookup parent from repository -->
|
||||
</parent>
|
||||
<groupId>io.cancerai</groupId>
|
||||
<groupId>top.cancerai</groupId>
|
||||
<artifactId>backend</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<name>backend</name>
|
||||
@@ -27,7 +27,7 @@
|
||||
<url/>
|
||||
</scm>
|
||||
<properties>
|
||||
<java.version>25</java.version>
|
||||
<java.version>17</java.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
@@ -39,12 +39,22 @@
|
||||
<artifactId>mybatis-spring-boot-starter</artifactId>
|
||||
<version>4.0.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springdoc</groupId>
|
||||
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
|
||||
<version>3.0.2</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.mysql</groupId>
|
||||
<artifactId>mysql-connector-j</artifactId>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-webmvc-test</artifactId>
|
||||
@@ -56,12 +66,6 @@
|
||||
<version>4.0.1</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
<version>1.18.44</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
@@ -69,6 +73,50 @@
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
</exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>default-compile</id>
|
||||
<phase>compile</phase>
|
||||
<goals>
|
||||
<goal>compile</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<annotationProcessorPaths>
|
||||
<path>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
</path>
|
||||
</annotationProcessorPaths>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>default-testCompile</id>
|
||||
<phase>test-compile</phase>
|
||||
<goals>
|
||||
<goal>testCompile</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<annotationProcessorPaths>
|
||||
<path>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
</path>
|
||||
</annotationProcessorPaths>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package io.cancerai.backend;
|
||||
package top.cancerai.backend;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
@@ -0,0 +1,11 @@
|
||||
package top.cancerai.backend.controller;
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
public class UserController {
|
||||
@RequestMapping("user")
|
||||
public static void userLogin() {
|
||||
}
|
||||
}
|
||||
@@ -2,10 +2,12 @@ spring:
|
||||
application:
|
||||
name: backend
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: mysql:jdbc://127.0.0.1:3306/pp
|
||||
username: cancerai
|
||||
password: admin
|
||||
url: "jdbc:mysql://127.0.0.1:3306/pp"
|
||||
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
mvc:
|
||||
servlet:
|
||||
path: /api
|
||||
server:
|
||||
port: 8080
|
||||
port: 8080
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package io.cancerai.backend;
|
||||
package top.cancerai.backend;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
@@ -4,7 +4,7 @@
|
||||
<inspection_tool class="HtmlUnknownTag" enabled="true" level="WARNING" enabled_by_default="true">
|
||||
<option name="myValues">
|
||||
<value>
|
||||
<list size="7">
|
||||
<list size="8">
|
||||
<item index="0" class="java.lang.String" itemvalue="nobr" />
|
||||
<item index="1" class="java.lang.String" itemvalue="noembed" />
|
||||
<item index="2" class="java.lang.String" itemvalue="comment" />
|
||||
@@ -12,6 +12,7 @@
|
||||
<item index="4" class="java.lang.String" itemvalue="embed" />
|
||||
<item index="5" class="java.lang.String" itemvalue="script" />
|
||||
<item index="6" class="java.lang.String" itemvalue="div" />
|
||||
<item index="7" class="java.lang.String" itemvalue="x-scrollable-container" />
|
||||
</list>
|
||||
</value>
|
||||
</option>
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
<title>平台绑定统计</title>
|
||||
<link rel="stylesheet" href="./style/index.css">
|
||||
<script src="./script/index.js"></script>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,user-scalable=no">
|
||||
</head>
|
||||
<body>
|
||||
<div class="title-container" id="title-container">
|
||||
@@ -58,7 +59,7 @@
|
||||
<div>{{安全}}</div>
|
||||
<div>{{小爱同学}}</div>
|
||||
<div>{{123456}}</div>
|
||||
<div>{{暂无}}</div>
|
||||
<div class="more-platform-container">{{暂无暂无暂无暂无暂无暂无暂无}}</div>
|
||||
<div class="more-platform-container">
|
||||
<div>{{邮箱}}, </div>
|
||||
<div>{{微信}}, </div>
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
:root {
|
||||
--color-green: #80c671;
|
||||
--color-red: #d56161;
|
||||
--content-text-color: #232323;
|
||||
--add-item-window-title-height: 60px;
|
||||
}
|
||||
|
||||
@@ -113,7 +114,6 @@ body {
|
||||
.table-outer-scrollable-container {
|
||||
min-height: 0;
|
||||
flex: 1;
|
||||
/*height: 700px;*/
|
||||
overflow-y: scroll;
|
||||
scrollbar-color: var(--color-green) rgba(236, 236, 236, 0.89);
|
||||
}
|
||||
@@ -127,6 +127,7 @@ body {
|
||||
justify-content: space-between;
|
||||
margin-top: 3px;
|
||||
margin-bottom: 3px;
|
||||
color: var(--content-text-color);
|
||||
}
|
||||
|
||||
.table-items-container .more-platform-container {
|
||||
|
||||
Reference in new issue
Block a user