1
0
mirror of https://gitee.com/bookshelfplus/bookshelfplus synced 2025-09-16 23:22:20 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

修了一些Bug,修改了一下nginx的相关路由配置

This commit is contained in:
2022-03-13 22:59:43 +08:00
parent e9d6107438
commit da4aaa0c91
11 changed files with 125 additions and 19 deletions

View File

@@ -4,7 +4,7 @@
"private": true,
"scripts": {
"start": "node app",
"dev": "nodemon app",
"dev": "nodemon",
"prod": "set NODE_ENV=production & pm2 start app.js --name bookshelfplus-frontend",
"clean": "node cleanup.js"
},

View File

@@ -11,7 +11,7 @@
Target Server Version : 50726
File Encoding : 65001
Date: 13/03/2022 01:51:00
Date: 13/03/2022 02:15:21
*/
SET NAMES utf8mb4;
@@ -164,10 +164,11 @@ CREATE TABLE `user_info` (
`weixin_third_party_auth_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`qq_third_party_auth_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of user_info
-- ----------------------------
INSERT INTO `user_info` VALUES (1, 'xiaomo', 'e10adc3949ba59abbe56e057f20f883e', '小小墨', 'ADMIN', '', '', '', '');
SET FOREIGN_KEY_CHECKS = 1;

View File

@@ -11,7 +11,6 @@
<option name="ALTERNATIVE_JRE_PATH" />
<method v="2">
<option name="Make" enabled="true" />
<option name="LaunchBrowser.Before.Run" url="http://localhost:8090/swagger-ui.html" />
</method>
</configuration>
</component>

View File

@@ -123,10 +123,11 @@
<artifactId>springfox-swagger-ui</artifactId>
<version>2.6.1</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!--前面引入过这个包-->
<!--<dependency>-->
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <artifactId>spring-boot-starter-web</artifactId>-->
<!--</dependency>-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>

View File

@@ -179,7 +179,7 @@
qq_third_party_auth_code = #{qqThirdPartyAuthCode,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<select id="selectByUsernameAndEncryptpwd" parameterType="java.lang.String" resultMap="BaseResultMap">
<select id="selectByUsernameAndEncryptpwd" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from user_info

69
quickReach.html Normal file
View File

@@ -0,0 +1,69 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
a,
a:visited {
color: blue;
margin: 20px;
}
</style>
</head>
<body>
<div id="container">
</div>
<script>
var links = [
{
url: 'http://localhost/',
title: 'Home'
},
"<hr>",
{
url: 'http://localhost/api/swagger-ui.html',
title: 'Swagger'
},
{
url: 'http://localhost/api/',
title: 'API'
},
{
url: 'http://localhost/api/book/get?id=1',
title: 'API测试Book'
},
"<hr>",
{
url: 'http://localhost/nginx_status',
title: 'Nginx Status'
},
"<hr>",
{
url: 'http://fanyi.youdao.com/',
title: '有道翻译'
},
{
url: 'http://fanyi.baidu.com/',
title: '百度翻译'
},
]
var html = '';
links.forEach(function (link) {
if (typeof link === 'object') {
html += '<p>' + link.title + '<a href="' + link.url + '" target="_blank">' + link.url + '</a></p>';
} else if (typeof link === 'string') {
html += link;
}
});
document.getElementById('container').innerHTML = html;
</script>
</body>
</html>

32
run.bat Normal file
View File

@@ -0,0 +1,32 @@
@echo off
:: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>SpringBoot
cd ./bookshelfplus/
:: refer: https://blog.csdn.net/abc86319253/article/details/44019881
:: mvn clean install
start mvn install -Djar.forceCreation spring-boot:run
echo <20><><EFBFBD><EFBFBD> SpringBoot
cd ../
:: <20><><EFBFBD><EFBFBD>ǰ<EFBFBD><C7B0>nodejs
cd ./bookshelfplus-frontend/
start cmd /C npm run dev
echo <20><><EFBFBD><EFBFBD> nodejs
cd ../
:: <20><><EFBFBD><EFBFBD>nginx
(taskkill /f /t /im nginx.exe) > nul
cd ./server/nginx/
start /b nginx.exe
:: /b <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>´<EFBFBD><C2B4><EFBFBD>
echo <20><><EFBFBD><EFBFBD> nginx
cd ../../
:: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
start explorer quickReach.html
echo <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
:: pause
:: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϲ<EFBFBD><CFB2><EFBFBD><EFBFBD>˳<EFBFBD>
:: start cmd /k echo Hello, World!
:: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϻ<EFBFBD><CFBB>˳<EFBFBD>
:: start cmd /C echo Hello, World!

View File

@@ -1,4 +1,8 @@
contrib
docs
logs
temp
contrib
temp/*
!temp/.keep
logs/*
!logs/.keep

View File

@@ -60,17 +60,17 @@ http {
# 在nginx 作为代理服务器时设置的IP列表会把经过的机器ip代理机器ip都记录下来用 【,】隔开;代码中用 echo $x-forwarded-for |awk -F, '{print $1}' 来作为源IP
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://backendSprintbootServer/;
proxy_pass http://backendSprintbootServer/api/;
index index.html index.htm;
}
# 查看 nginx 状态
# location /ngx_status {
# stub_status on;
# access_log off;
# #allow 127.0.0.1;
# #deny all;
# }
location /nginx_status {
stub_status on;
access_log off;
#allow 127.0.0.1;
#deny all;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html

0
server/nginx/logs/.keep Normal file
View File

0
server/nginx/temp/.keep Normal file
View File