mod vue2 to vue3

This commit is contained in:
chenhaodong
2026-06-18 01:44:25 +08:00
parent 109204734a
commit d30ff1a362
124 changed files with 951 additions and 2183 deletions
@@ -2,28 +2,44 @@ package com.bc.exam;
import com.bc.exam.core.api.utils.JsonConverter;
import lombok.extern.log4j.Log4j2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.Environment;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.List;
/**
* @Description 描述:springboot 系统启动
* @Author A贾宇婷034244310
* @Date 20260615
* 启动
*/
@Log4j2
@SpringBootApplication
@EnableTransactionManagement
public class ExamApplication implements WebMvcConfigurer {
public static void main(String[] args) {
public static void main(String[] args) throws UnknownHostException {
ConfigurableApplicationContext application = SpringApplication.run(ExamApplication.class, args);
Environment env = application.getEnvironment();
String ip = InetAddress.getLocalHost().getHostAddress();
String port = env.getProperty("server.port");
String path = env.getProperty("server.servlet.context-path");
// 未配置默认空白
if(path == null){
path = "";
}
log.info("\n----------------------------------------------------------\n\t" +
"系统启动成功,访问路径如下:\n\t" +
"本地路径: \t\thttp://127.0.0.1:8101/\n\t"+
"API文档: \t\thttp://127.0.0.1:8101/doc.html\n\t" +
"本地路径: \t\thttp://127.0.0.1:" + port + path + "/\n\t" +
"网络地址: \thttp://" + ip + ":" + port + path + "/\n\t" +
"API文档: \t\thttp://" + ip + ":" + port + path + "/doc.html\n" +
"----------------------------------------------------------");
}
@@ -66,6 +66,7 @@ public class ShiroConfig {
map.put("/**/*.pdf", "anon");
map.put("/**/*.jpg", "anon");
map.put("/**/*.png", "anon");
map.put("/**/*.gif", "anon");
map.put("/**/*.ico", "anon");
// 字体