Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
N
notes2.0
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zjm
notes2.0
Commits
acb43a2e
提交
acb43a2e
authored
5月 27, 2020
作者:
gongwenjie
浏览文件
操作
浏览文件
下载
差异文件
合并分支 'gwj' 到 'master'
Gwj 查看合并请求
!123
上级
90b1fa92
7bad6f2c
流水线
#181
已失败 于阶段
变更
5
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
86 行增加
和
41 行删除
+86
-41
pom.xml
notes-attendance/pom.xml
+31
-16
pom.xml
notes-misc/pom.xml
+1
-0
pom.xml
notes-union/pom.xml
+25
-2
UnionApplication.java
...rc/main/java/com/zjty/tynotes/union/UnionApplication.java
+22
-16
application.properties
notes-union/src/main/resources/application.properties
+7
-7
没有找到文件。
notes-attendance/pom.xml
浏览文件 @
acb43a2e
...
...
@@ -61,7 +61,19 @@
<optional>
true
</optional>
</dependency>
<!-- 钉钉接口依赖调用 -->
<!--<dependency>-->
<!--<groupId>com.ding</groupId>-->
<!--<artifactId>ding</artifactId>-->
<!--<version>1.0</version>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>com.ding</groupId>-->
<!--<artifactId>ding</artifactId>-->
<!--<version>1.1</version>-->
<!--</dependency>-->
<!--<!– 钉钉接口依赖调用 –>-->
<dependency>
<groupId>
com.dingtalk
</groupId>
<artifactId>
2
</artifactId>
...
...
@@ -79,22 +91,25 @@
</dependency>
</dependencies>
<build>
<plugins>
<!--打包插件-->
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<!--<build>-->
<!--<plugins>-->
<!--<!–打包插件–>-->
<!--<plugin>-->
<!--<groupId>org.springframework.boot</groupId>-->
<!--<artifactId>spring-boot-maven-plugin</artifactId>-->
<!--<!–<configuration>–>-->
<!--<!–<executable>true</executable>–>-->
<!--<!–</configuration>–>-->
<!--<configuration>-->
<!--<
executable>true</executabl
e>-->
<!--<
includeSystemScope>true</includeSystemScop
e>-->
<!--</configuration>-->
</plugin>
<!--跳过测试插件-->
<!--<plugin>-->
<!--<groupId>org.apache.maven.plugins</groupId>-->
<!--<artifactId>maven-surefire-plugin</artifactId>-->
<!--<version>2.20</version>-->
<!--</plugin>-->
</plugins>
</build>
<!--<!–跳过测试插件–>-->
<!--<!–<plugin>–>-->
<!--<!–<groupId>org.apache.maven.plugins</groupId>–>-->
<!--<!–<artifactId>maven-surefire-plugin</artifactId>–>-->
<!--<!–<version>2.20</version>–>-->
<!--<!–</plugin>–>-->
<!--</plugins>-->
<!--</build>-->
</project>
notes-misc/pom.xml
浏览文件 @
acb43a2e
...
...
@@ -75,6 +75,7 @@
<artifactId>
easypoi-annotation
</artifactId>
<version>
3.2.0
</version>
</dependency>
</dependencies>
<build>
...
...
notes-union/pom.xml
浏览文件 @
acb43a2e
...
...
@@ -126,6 +126,8 @@
<artifactId>
spring-boot-maven-plugin
</artifactId>
<configuration>
<executable>
true
</executable>
<fork>
true
</fork>
<includeSystemScope>
true
</includeSystemScope>
<!--添加此项-->
</configuration>
</plugin>
<!--跳过测试插件-->
...
...
@@ -137,9 +139,29 @@
<skipTests>
true
</skipTests>
<!--默认关掉单元测试 -->
</configuration>
</plugin>
</plugins>
</build>
<!--<plugin>-->
<!--<groupId>org.apache.maven.plugins</groupId>-->
<!--<artifactId>maven-jar-plugin</artifactId>-->
<!--<version>3.1.0</version>-->
<!--<configuration>-->
<!--<webResources>-->
<!--<!–配置第三方jar包打包的路径–>-->
<!--<resource>-->
<!--<directory>src/main/resources/lib/</directory>-->
<!--<targetPath>WEB-INF/lib/</targetPath>-->
<!--<includes>-->
<!--<include>**/*.jar</include>-->
<!--</includes>-->
<!--</resource>-->
<!--</webResources>-->
<!--<!– maven打包的时候告诉maven不需要web.xml,否刚会报找不到web.xml错误 –>-->
<!--<failOnMissingWebXml>false</failOnMissingWebXml>-->
<!--</configuration>-->
<!--</plugin>-->
</plugins>
</build>
</project>
\ No newline at end of file
notes-union/src/main/java/com/zjty/tynotes/union/UnionApplication.java
浏览文件 @
acb43a2e
package
com
.
zjty
.
tynotes
.
union
;
import
com.zjty.tynotes.attendance.dao.AttendanceDetailsDao
;
import
javafx.application.Application
;
import
org.apache.catalina.connector.Connector
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.builder.SpringApplicationBuilder
;
...
...
@@ -47,21 +49,25 @@ public class UnionApplication
SpringApplication
.
run
(
UnionApplication
.
class
,
args
);
}
// 开始支持http
// @Bean
// public ServletWebServerFactory servletContainer() {
// TomcatServletWebServerFactory tomcat = new TomcatServletWebServerFactory();
// tomcat.addAdditionalTomcatConnectors(createHTTPConnector());
// return tomcat;
// }
//
// private Connector createHTTPConnector() {
// Connector connector = new Connector("org.apache.coyote.http11.Http11NioProtocol");
// //同时启用http(8080)、https(8443)两个端口
// connector.setScheme("http");
// connector.setSecure(false);
// connector.setPort(8084);
// connector.setRedirectPort(8289);
// return connector;
// }
@Bean
public
ServletWebServerFactory
servletContainer
()
{
TomcatServletWebServerFactory
tomcat
=
new
TomcatServletWebServerFactory
();
tomcat
.
addAdditionalTomcatConnectors
(
createHTTPConnector
());
return
tomcat
;
}
private
Connector
createHTTPConnector
()
{
Connector
connector
=
new
Connector
(
"org.apache.coyote.http11.Http11NioProtocol"
);
//同时启用http(8080)、https(8443)两个端口
connector
.
setScheme
(
"http"
);
connector
.
setSecure
(
false
);
connector
.
setPort
(
8084
);
connector
.
setRedirectPort
(
8289
);
return
connector
;
}
@Autowired
private
AttendanceDetailsDao
attendanceDetailsDao
;
}
notes-union/src/main/resources/application.properties
浏览文件 @
acb43a2e
...
...
@@ -3,13 +3,13 @@ spring.application.name=workbook
## https端口号.
server.port
=
8289
# 证书的路径.
#
server.ssl.key-store=classpath:2586377_workbook.zjtys.com.cn.pfx
#
#
证书密码,请修改为您自己证书的密码.
#
server.ssl.key-store-password=bMEPW9BG
#
#
秘钥库类型
#
server.ssl.keyStoreType=PKCS12
#
#
证书别名
#
server.ssl.keyAlias= alias
server.ssl.key-store
=
classpath:2586377_workbook.zjtys.com.cn.pfx
# 证书密码,请修改为您自己证书的密码.
server.ssl.key-store-password
=
bMEPW9BG
# 秘钥库类型
server.ssl.keyStoreType
=
PKCS12
# 证书别名
server.ssl.keyAlias
=
alias
#mongodb configuration
spring.data.mongodb.uri
=
mongodb://localhost:27017/notes5
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论