优化部分引用
This commit is contained in:
parent
19da87a044
commit
f0f3e576d6
BIN
.mvn/wrapper/maven-wrapper.jar
vendored
Normal file
BIN
.mvn/wrapper/maven-wrapper.jar
vendored
Normal file
Binary file not shown.
2
.mvn/wrapper/maven-wrapper.properties
vendored
Normal file
2
.mvn/wrapper/maven-wrapper.properties
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.3/apache-maven-3.9.3-bin.zip
|
||||
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
|
||||
@ -5,15 +5,15 @@ import org.springframework.web.bind.annotation.GetMapping;
|
||||
|
||||
@Controller
|
||||
public class NavigationController {
|
||||
// @GetMapping("/personal/")
|
||||
// public String personal_index(){
|
||||
// return "self";
|
||||
// }
|
||||
//
|
||||
// @GetMapping("/personal/mobile")
|
||||
// public String personal_mobile(){
|
||||
// return "selfMobile";
|
||||
// }
|
||||
@GetMapping("/personal/")
|
||||
public String personal_index(){
|
||||
return "self";
|
||||
}
|
||||
|
||||
@GetMapping("/personal/mobile")
|
||||
public String personal_mobile(){
|
||||
return "selfMobile";
|
||||
}
|
||||
|
||||
@GetMapping("/")
|
||||
public String index(){
|
||||
|
||||
@ -3,7 +3,6 @@ package com.lion.lionwebsite.Interceptor;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import org.springframework.web.servlet.HandlerInterceptor;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
|
||||
public class HumanInterceptor implements HandlerInterceptor {
|
||||
|
||||
@ -4,7 +4,6 @@ import com.lion.lionwebsite.Dao.UserMapper;
|
||||
import jakarta.annotation.Resource;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import org.springframework.lang.NonNullApi;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.web.servlet.HandlerInterceptor;
|
||||
|
||||
|
||||
@ -14,8 +14,4 @@ public class ResponseMessage extends AbstractMessage{
|
||||
|
||||
byte result;
|
||||
|
||||
public ResponseMessage(int messageId, byte result){
|
||||
this.messageId = messageId;
|
||||
this.result = result;
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
src/main/resources/static/self/index.css
Normal file
1
src/main/resources/static/self/index.css
Normal file
File diff suppressed because one or more lines are too long
59
src/main/resources/static/self/index.js
Normal file
59
src/main/resources/static/self/index.js
Normal file
File diff suppressed because one or more lines are too long
1
src/main/resources/static/self/mobile.css
Normal file
1
src/main/resources/static/self/mobile.css
Normal file
File diff suppressed because one or more lines are too long
59
src/main/resources/static/self/mobile.js
Normal file
59
src/main/resources/static/self/mobile.js
Normal file
File diff suppressed because one or more lines are too long
14
src/main/resources/templates/self.html
Normal file
14
src/main/resources/templates/self.html
Normal file
@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Lion</title>
|
||||
<script type="module" crossorigin src="/self/index.js"></script>
|
||||
<link rel="stylesheet" href="/self/index.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
</body>
|
||||
</html>
|
||||
15
src/main/resources/templates/selfMobile.html
Normal file
15
src/main/resources/templates/selfMobile.html
Normal file
@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Personal</title>
|
||||
<script type="module" crossorigin src="/self/mobile.js"></script>
|
||||
<link rel="stylesheet" href="/self/mobile.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue
Block a user