Changes to be committed:
modified: app_sb/src/main/resources/application.yml new file: app_vue/.env.development modified: app_vue/src/components/GetToken_1.vue modified: app_vue/vue.config.js
This commit is contained in:
@ -5,7 +5,7 @@ spring:
|
|||||||
datasource:
|
datasource:
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
username: root
|
username: root
|
||||||
password: 123456
|
password:
|
||||||
url: jdbc:mysql://localhost:3306/exam_20250612_58009?characterEncoding=utf-8&serverTimezone=UTC&useSSL=false
|
url: jdbc:mysql://localhost:3306/exam_20250612_58009?characterEncoding=utf-8&serverTimezone=UTC&useSSL=false
|
||||||
|
|
||||||
mybatis:
|
mybatis:
|
||||||
@ -14,18 +14,3 @@ mybatis:
|
|||||||
configuration:
|
configuration:
|
||||||
#log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
|
#log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
|
||||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||||
|
|
||||||
|
|
||||||
# create database exam_20250612_58056;
|
|
||||||
# use exam_20250612_58056;
|
|
||||||
# drop table user_70;
|
|
||||||
# create table user_70(name char(50),address char(50),password char(50))ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
|
||||||
# insert into user_70(name,address,password)values('mike','shanghai','c4ca4238a0b923820dcc509a6f75849b');
|
|
||||||
# insert into user_70(name,address,password)values('rose','beijing','c4ca4238a0b923820dcc509a6f75849b');
|
|
||||||
|
|
||||||
# create database exam_20250612_58056;
|
|
||||||
# use exam_20250612_58056;
|
|
||||||
# drop table person_base_info_881_1;
|
|
||||||
# create table person_base_info_881_1(id varchar(18),name varchar(20),sbp int,dbp int)ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
|
||||||
# insert into person_base_info_881_1(id,name,sbp,dbp)values('510103234','罗维','114','70');
|
|
||||||
# insert into person_base_info_881_1(id,name,sbp,dbp)values('510103239','洪七公','134','89');
|
|
8
app_vue/.env.development
Normal file
8
app_vue/.env.development
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# 下面填写 VPS spring vue port (替换53600)
|
||||||
|
VUE_APP_PORT = 53600
|
||||||
|
# 下面填写 浏览器URL栏中 http://[考试服务器地址]:[端口号] 例如 http://10.128.192.1:8022(替换http://10.128.128.249:8022)
|
||||||
|
SERVER_URL = http://10.128.128.249:8022
|
||||||
|
# 下面填写 你的学号(替换202241401022)
|
||||||
|
VUE_APP_STUDENT_ID = 202241401022
|
||||||
|
# 下面填写 VPS spring boot port(替换53300)
|
||||||
|
SPRINGBOOT_PORT= 53300
|
@ -11,7 +11,7 @@
|
|||||||
proxy:"/examServer",
|
proxy:"/examServer",
|
||||||
url:"/public_api/v1/api_for_vue_exam_1?student_id=",
|
url:"/public_api/v1/api_for_vue_exam_1?student_id=",
|
||||||
token:"no token",
|
token:"no token",
|
||||||
student_id: "202241401015"
|
student_id: process.env.VUE_APP_STUDENT_ID
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
@ -4,11 +4,11 @@ module.exports = defineConfig({
|
|||||||
})
|
})
|
||||||
module.exports={
|
module.exports={
|
||||||
devServer:{
|
devServer:{
|
||||||
port:58610,
|
port: process.env.VUE_APP_PORT,
|
||||||
allowedHosts:"all",
|
allowedHosts:"all",
|
||||||
proxy: {
|
proxy: {
|
||||||
'/examServer': {
|
'/examServer': {
|
||||||
target: "http://10.128.128.249:8022",
|
target: process.env.SERVER_URL,
|
||||||
secure: false,
|
secure: false,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
@ -16,7 +16,7 @@ module.exports={
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
'/springbootServer': {
|
'/springbootServer': {
|
||||||
target: "http://localhost:58310",
|
target: `http://localhost:${process.env.SPRINGBOOT_PORT}`,
|
||||||
secure: false,
|
secure: false,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
|
Reference in New Issue
Block a user