Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
inspect
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
912协同工作系统
项目监控管理工具
inspect
Commits
0ca59e25
提交
0ca59e25
authored
3月 04, 2020
作者:
孙洁清
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
关键技术接口根据name查询功能
上级
4bd7b489
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
39 行增加
和
38 行删除
+39
-38
TechnologyController.java
...ava/com/zjty/inspect/controller/TechnologyController.java
+2
-2
application-dev.properties
src/main/resources/application-dev.properties
+19
-18
application.properties
src/main/resources/application.properties
+18
-18
没有找到文件。
src/main/java/com/zjty/inspect/controller/TechnologyController.java
浏览文件 @
0ca59e25
...
...
@@ -32,8 +32,8 @@ public class TechnologyController {
* 获取所有关键技术
* @return List
*/
@GetMapping
(
"/name
"
)
public
ResponseEntity
getTechnologies
(
@
RequestParam
String
name
){
@GetMapping
(
value
=
"/{name}
"
)
public
ResponseEntity
getTechnologies
(
@
PathVariable
String
name
){
return
ResponseEntity
.
ok
(
technologyService
.
findAllTechnology
(
name
));
}
/**
...
...
src/main/resources/application-dev.properties
浏览文件 @
0ca59e25
#
配置文件使用 默认使用 dev 环境
#
\u914D\u7F6E\u6587\u4EF6\u4F7F\u7528 \u9ED8\u8BA4\u4F7F\u7528 dev \u73AF\u5883
#spring.profiles.active=dev
#spring.profiles.active=doc
#spring.profiles.active=prod
#
服务器相关配置
#
\u670D\u52A1\u5668\u76F8\u5173\u914D\u7F6E
server.port
=
8079
spring.jpa.database-platform
=
org.hibernate.dialect.MySQL5InnoDBDialect
#
日志文件相关配置
#
\u65E5\u5FD7\u6587\u4EF6\u76F8\u5173\u914D\u7F6E
# logging.level.org.hibernate.sql=debug
logging.file.path
=
./log/master.log
#logging.file=./log/master.log
...
...
@@ -16,22 +16,22 @@ logging.file.path=./log/master.log
#spring.datasource.driver-class-name=com.mysql.jdbc.Driver
#spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect
# spring-data-jpa
相关配置
#
指jpa对表生成的策略
# spring-data-jpa
\u76F8\u5173\u914D\u7F6E
#
\u6307jpa\u5BF9\u8868\u751F\u6210\u7684\u7B56\u7565
spring.jpa.hibernate.ddl-auto
=
create
#
是否显示sql语句
#
\u662F\u5426\u663E\u793Asql\u8BED\u53E5
spring.jpa.show-sql
=
false
#
格式化
sql
#
\u683C\u5F0F\u5316
sql
#spring.jpa.properties.hibernate.format_sql=true
spring.jpa.open-in-view
=
true
#
验证框架是否对数据操作验证
#
\u9A8C\u8BC1\u6846\u67B6\u662F\u5426\u5BF9\u6570\u636E\u64CD\u4F5C\u9A8C\u8BC1
spring.jpa.properties.javax.persistence.validation.mode
=
none
# spring-http-
文件上传相关配置
# spring-http-
\u6587\u4EF6\u4E0A\u4F20\u76F8\u5173\u914D\u7F6E
spring.servlet.multipart.max-file-size
=
200MB
spring.servlet.multipart.max-request-size
=
200MB
#
配置时间格式
#
\u914D\u7F6E\u65F6\u95F4\u683C\u5F0F
spring.jacksondate-format
=
yyyy-MM-dd HH:mm:ss
spring.thymeleaf.cache
=
false
...
...
@@ -47,10 +47,11 @@ spring.resources.static-locations=classpath:/uploads/
#testCaseExcelTable=C:/Users/admin/Desktop/test.xls
#createTxtPath=C:/
# mysql
数据库配置
# mysql
\u6570\u636E\u5E93\u914D\u7F6E
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
#spring.datasource.url=jdbc:mysql://192.168.1.249:3306/bservice?useSSL=false&serverTimezone=UTC&autoReconnect=true&characterEncoding=utf-8
spring.datasource.url
=
jdbc:mysql://localhost:3306/adaptation?useSSL=false&serverTimezone=UTC&autoReconnect=true&characterEncoding=utf-8
#spring.datasource.url=jdbc:mysql://localhost:3306/adaptation?useSSL=false&serverTimezone=UTC&autoReconnect=true&characterEncoding=utf-8
spring.datasource.url
=
jdbc:mysql://120.55.57.35:3306/adaptation?characterEncoding=utf-8
spring.datasource.username
=
root
spring.datasource.password
=
root
...
...
@@ -58,8 +59,8 @@ maven.home=/usr/share/maven
maven.command
=
dependency:tree -DoutputType=txt -DoutputFile=
maven.treefile
=
./tree
spring.redis.host
=
127.0.0.1
#Redis服务器连接端口
spring.redis.port
=
6379
#Redis服务器连接密码(默认为空)
spring.redis.password
=
\ No newline at end of file
#spring.redis.host=127.0.0.1
##Redis\u670D\u52A1\u5668\u8FDE\u63A5\u7AEF\u53E3
#spring.redis.port=6379
##Redis\u670D\u52A1\u5668\u8FDE\u63A5\u5BC6\u7801\uFF08\u9ED8\u8BA4\u4E3A\u7A7A\uFF09
#
spring.redis.password
=
\ No newline at end of file
src/main/resources/application.properties
浏览文件 @
0ca59e25
#
配置文件使用 默认使用 dev 环境
#
\u914D\u7F6E\u6587\u4EF6\u4F7F\u7528 \u9ED8\u8BA4\u4F7F\u7528 dev \u73AF\u5883
#spring.profiles.active=dev
#spring.profiles.active=doc
#spring.profiles.active=prod
#
服务器相关配置
#
\u670D\u52A1\u5668\u76F8\u5173\u914D\u7F6E
server.port
=
8079
spring.jpa.database-platform
=
org.hibernate.dialect.MySQL5InnoDBDialect
#
日志文件相关配置
#
\u65E5\u5FD7\u6587\u4EF6\u76F8\u5173\u914D\u7F6E
# logging.level.org.hibernate.sql=debug
logging.file.path
=
./log/master.log
#logging.file=./log/master.log
...
...
@@ -16,22 +16,22 @@ logging.file.path=./log/master.log
#spring.datasource.driver-class-name=com.mysql.jdbc.Driver
#spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect
# spring-data-jpa
相关配置
#
指jpa对表生成的策略
# spring-data-jpa
\u76F8\u5173\u914D\u7F6E
#
\u6307jpa\u5BF9\u8868\u751F\u6210\u7684\u7B56\u7565
spring.jpa.hibernate.ddl-auto
=
create
#
是否显示sql语句
#
\u662F\u5426\u663E\u793Asql\u8BED\u53E5
spring.jpa.show-sql
=
false
#
格式化
sql
#
\u683C\u5F0F\u5316
sql
#spring.jpa.properties.hibernate.format_sql=true
spring.jpa.open-in-view
=
true
#
验证框架是否对数据操作验证
#
\u9A8C\u8BC1\u6846\u67B6\u662F\u5426\u5BF9\u6570\u636E\u64CD\u4F5C\u9A8C\u8BC1
spring.jpa.properties.javax.persistence.validation.mode
=
none
# spring-http-
文件上传相关配置
# spring-http-
\u6587\u4EF6\u4E0A\u4F20\u76F8\u5173\u914D\u7F6E
spring.servlet.multipart.max-file-size
=
200MB
spring.servlet.multipart.max-request-size
=
200MB
#
配置时间格式
#
\u914D\u7F6E\u65F6\u95F4\u683C\u5F0F
spring.jacksondate-format
=
yyyy-MM-dd HH:mm:ss
spring.thymeleaf.cache
=
false
...
...
@@ -47,10 +47,10 @@ spring.resources.static-locations=classpath:/uploads/
#testCaseExcelTable=C:/Users/admin/Desktop/test.xls
#createTxtPath=C:/
# mysql
数据库配置
# mysql
\u6570\u636E\u5E93\u914D\u7F6E
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
#spring.datasource.url=jdbc:mysql://192.168.1.249:3306/bservice?useSSL=false&serverTimezone=UTC&autoReconnect=true&characterEncoding=utf-8
spring.datasource.url
=
jdbc:mysql://
localhost
:3306/adaptation?useSSL=false&serverTimezone=UTC&autoReconnect=true&characterEncoding=utf-8
spring.datasource.url
=
jdbc:mysql://
120.55.57.35
:3306/adaptation?useSSL=false&serverTimezone=UTC&autoReconnect=true&characterEncoding=utf-8
spring.datasource.username
=
root
spring.datasource.password
=
root
...
...
@@ -58,8 +58,8 @@ maven.home=/Users/mcj/apache-maven-3.6.1
maven.command
=
dependency:tree -DoutputType=txt -DoutputFile=
maven.treefile
=
./hello
spring.redis.host
=
127.0.0.1
#Redis服务器连接端口
spring.redis.port
=
6379
#Redis服务器连接密码(默认为空)
spring.redis.password
=
\ No newline at end of file
#spring.redis.host=127.0.0.1
##Redis\u670D\u52A1\u5668\u8FDE\u63A5\u7AEF\u53E3
#spring.redis.port=6379
##Redis\u670D\u52A1\u5668\u8FDE\u63A5\u5BC6\u7801\uFF08\u9ED8\u8BA4\u4E3A\u7A7A\uFF09
#
spring.redis.password
=
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论