Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
flybirding10011
问数
提交
72f402a2
问
问数
项目概览
flybirding10011
/
问数
与 Fork 源项目一致
Fork自
知源笔记 / 问数
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
问
问数
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
72f402a2
编写于
7月 03, 2023
作者:
知源笔记
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: fe version
上级
e3cebe57
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
8 addition
and
10 deletion
+8
-10
pom.xml
pom.xml
+1
-6
src/main/java/org/enthusa/askdata/Application.java
src/main/java/org/enthusa/askdata/Application.java
+4
-1
src/main/resources/application-dev.yml
src/main/resources/application-dev.yml
+1
-1
src/main/resources/templates/main.ftl
src/main/resources/templates/main.ftl
+2
-2
未找到文件。
pom.xml
浏览文件 @
72f402a2
...
...
@@ -88,11 +88,6 @@
<artifactId>
druid
</artifactId>
<version>
1.2.18
</version>
</dependency>
<dependency>
<groupId>
org.mybatis
</groupId>
<artifactId>
mybatis
</artifactId>
<version>
3.5.2
</version>
</dependency>
<dependency>
<groupId>
org.apache.commons
</groupId>
<artifactId>
commons-text
</artifactId>
...
...
@@ -114,7 +109,7 @@
</dependency>
<dependency>
<groupId>
org.apache.httpcomponents
</groupId>
<artifactId>
httpc
ore
</artifactId>
<artifactId>
httpc
lient
</artifactId>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
...
...
src/main/java/org/enthusa/askdata/Application.java
浏览文件 @
72f402a2
package
org.enthusa.askdata
;
import
org.enthusa.askdata.config.GlobalSetting
;
import
org.enthusa.avatar.utils.http.OkHttpUtils
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.stereotype.Controller
;
...
...
@@ -25,7 +26,9 @@ public class Application {
@GetMapping
(
"/"
)
public
ModelAndView
home
(
ModelAndView
model
)
{
model
.
addObject
(
"env"
,
globalSetting
.
getEnv
());
String
url
=
String
.
format
(
"http://xiyu.zhiyuanbiji.cn/api/askdata?env=%s"
,
globalSetting
.
getEnv
());
String
version
=
OkHttpUtils
.
get
(
url
);
model
.
addObject
(
"version"
,
version
);
model
.
setViewName
(
"main"
);
return
model
;
}
...
...
src/main/resources/application-dev.yml
浏览文件 @
72f402a2
...
...
@@ -6,7 +6,7 @@ settings:
spring
:
datasource
:
driver-class-name
:
com.mysql.cj.jdbc.Driver
url
:
jdbc:mysql://127.0.0.1:3306/askdata_dev?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8
url
:
jdbc:mysql://127.0.0.1:3306/askdata_dev?useUnicode=true&characterEncoding=utf-8&useSSL=false&
allowPublicKeyRetrieval=true&
serverTimezone=GMT%2b8
username
:
askdata_user
password
:
askdata624@MySQL
schema
:
classpath:import.sql
...
...
src/main/resources/templates/main.ftl
浏览文件 @
72f402a2
...
...
@@ -11,11 +11,11 @@
<meta
name=
'apple-mobile-web-app-capable'
content=
'yes'
>
<link
href=
'//kysw-static.oss-cn-qingdao.aliyuncs.com/david.ico'
rel=
'shortcut icon'
>
<link
href=
'//kysw-static.oss-cn-qingdao.aliyuncs.com/david.ico'
rel=
'apple-touch-icon'
>
<link
href=
'https://kysw-static.oss-cn-qingdao.aliyuncs.com/askdata
-${(env
)!}.css'
rel=
'stylesheet'
>
<link
href=
'https://kysw-static.oss-cn-qingdao.aliyuncs.com/askdata
${(version
)!}.css'
rel=
'stylesheet'
>
<title>
问数
</title>
</head>
<body
ontouchstart
>
<div
id=
'app'
></div>
<script
type=
'text/javascript'
src=
'https://kysw-static.oss-cn-qingdao.aliyuncs.com/askdata
-${(env
)!}.js'
></script>
<script
type=
'text/javascript'
src=
'https://kysw-static.oss-cn-qingdao.aliyuncs.com/askdata
${(version
)!}.js'
></script>
</body>
</html>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录