提交 acb43a2e authored 作者: gongwenjie's avatar gongwenjie

合并分支 'gwj' 到 'master'

Gwj 查看合并请求 !123
流水线 #181 已失败 于阶段
...@@ -61,7 +61,19 @@ ...@@ -61,7 +61,19 @@
<optional>true</optional> <optional>true</optional>
</dependency> </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>-->
<!--&lt;!&ndash; 钉钉接口依赖调用 &ndash;&gt;-->
<dependency> <dependency>
<groupId>com.dingtalk</groupId> <groupId>com.dingtalk</groupId>
<artifactId>2</artifactId> <artifactId>2</artifactId>
...@@ -79,22 +91,25 @@ ...@@ -79,22 +91,25 @@
</dependency> </dependency>
</dependencies> </dependencies>
<build> <!--<build>-->
<plugins> <!--<plugins>-->
<!--打包插件--> <!--&lt;!&ndash;打包插件&ndash;&gt;-->
<plugin> <!--<plugin>-->
<groupId>org.springframework.boot</groupId> <!--<groupId>org.springframework.boot</groupId>-->
<artifactId>spring-boot-maven-plugin</artifactId> <!--<artifactId>spring-boot-maven-plugin</artifactId>-->
<!--&lt;!&ndash;<configuration>&ndash;&gt;-->
<!--&lt;!&ndash;<executable>true</executable>&ndash;&gt;-->
<!--&lt;!&ndash;</configuration>&ndash;&gt;-->
<!--<configuration>--> <!--<configuration>-->
<!--<executable>true</executable>--> <!--<includeSystemScope>true</includeSystemScope>-->
<!--</configuration>--> <!--</configuration>-->
</plugin>
<!--跳过测试插件-->
<!--<plugin>-->
<!--<groupId>org.apache.maven.plugins</groupId>-->
<!--<artifactId>maven-surefire-plugin</artifactId>-->
<!--<version>2.20</version>-->
<!--</plugin>--> <!--</plugin>-->
</plugins> <!--&lt;!&ndash;跳过测试插件&ndash;&gt;-->
</build> <!--&lt;!&ndash;<plugin>&ndash;&gt;-->
<!--&lt;!&ndash;<groupId>org.apache.maven.plugins</groupId>&ndash;&gt;-->
<!--&lt;!&ndash;<artifactId>maven-surefire-plugin</artifactId>&ndash;&gt;-->
<!--&lt;!&ndash;<version>2.20</version>&ndash;&gt;-->
<!--&lt;!&ndash;</plugin>&ndash;&gt;-->
<!--</plugins>-->
<!--</build>-->
</project> </project>
...@@ -75,6 +75,7 @@ ...@@ -75,6 +75,7 @@
<artifactId>easypoi-annotation</artifactId> <artifactId>easypoi-annotation</artifactId>
<version>3.2.0</version> <version>3.2.0</version>
</dependency> </dependency>
</dependencies> </dependencies>
<build> <build>
......
...@@ -126,6 +126,8 @@ ...@@ -126,6 +126,8 @@
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
<configuration> <configuration>
<executable>true</executable> <executable>true</executable>
<fork>true</fork>
<includeSystemScope>true</includeSystemScope><!--添加此项-->
</configuration> </configuration>
</plugin> </plugin>
<!--跳过测试插件--> <!--跳过测试插件-->
...@@ -137,9 +139,29 @@ ...@@ -137,9 +139,29 @@
<skipTests>true</skipTests> <!--默认关掉单元测试 --> <skipTests>true</skipTests> <!--默认关掉单元测试 -->
</configuration> </configuration>
</plugin> </plugin>
</plugins>
</build>
<!--<plugin>-->
<!--<groupId>org.apache.maven.plugins</groupId>-->
<!--<artifactId>maven-jar-plugin</artifactId>-->
<!--<version>3.1.0</version>-->
<!--<configuration>-->
<!--<webResources>-->
<!--&lt;!&ndash;配置第三方jar包打包的路径&ndash;&gt;-->
<!--<resource>-->
<!--<directory>src/main/resources/lib/</directory>-->
<!--<targetPath>WEB-INF/lib/</targetPath>-->
<!--<includes>-->
<!--<include>**/*.jar</include>-->
<!--</includes>-->
<!--</resource>-->
<!--</webResources>-->
<!--&lt;!&ndash; maven打包的时候告诉maven不需要web.xml,否刚会报找不到web.xml错误 &ndash;&gt;-->
<!--<failOnMissingWebXml>false</failOnMissingWebXml>-->
<!--</configuration>-->
<!--</plugin>-->
</plugins>
</build>
</project> </project>
\ No newline at end of file
package com.zjty.tynotes.union; package com.zjty.tynotes.union;
import com.zjty.tynotes.attendance.dao.AttendanceDetailsDao;
import javafx.application.Application; import javafx.application.Application;
import org.apache.catalina.connector.Connector; import org.apache.catalina.connector.Connector;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.builder.SpringApplicationBuilder;
...@@ -47,21 +49,25 @@ public class UnionApplication ...@@ -47,21 +49,25 @@ public class UnionApplication
SpringApplication.run(UnionApplication.class, args); SpringApplication.run(UnionApplication.class, args);
} }
// 开始支持http // 开始支持http
// @Bean @Bean
// public ServletWebServerFactory servletContainer() { public ServletWebServerFactory servletContainer() {
// TomcatServletWebServerFactory tomcat = new TomcatServletWebServerFactory(); TomcatServletWebServerFactory tomcat = new TomcatServletWebServerFactory();
// tomcat.addAdditionalTomcatConnectors(createHTTPConnector()); tomcat.addAdditionalTomcatConnectors(createHTTPConnector());
// return tomcat; return tomcat;
// } }
//
// private Connector createHTTPConnector() { private Connector createHTTPConnector() {
// Connector connector = new Connector("org.apache.coyote.http11.Http11NioProtocol"); Connector connector = new Connector("org.apache.coyote.http11.Http11NioProtocol");
// //同时启用http(8080)、https(8443)两个端口 //同时启用http(8080)、https(8443)两个端口
// connector.setScheme("http"); connector.setScheme("http");
// connector.setSecure(false); connector.setSecure(false);
// connector.setPort(8084); connector.setPort(8084);
// connector.setRedirectPort(8289); connector.setRedirectPort(8289);
// return connector; return connector;
// } }
@Autowired
private AttendanceDetailsDao attendanceDetailsDao;
} }
...@@ -3,13 +3,13 @@ spring.application.name=workbook ...@@ -3,13 +3,13 @@ spring.application.name=workbook
## https端口号. ## https端口号.
server.port=8289 server.port=8289
# 证书的路径. # 证书的路径.
#server.ssl.key-store=classpath:2586377_workbook.zjtys.com.cn.pfx server.ssl.key-store=classpath:2586377_workbook.zjtys.com.cn.pfx
## 证书密码,请修改为您自己证书的密码. # 证书密码,请修改为您自己证书的密码.
#server.ssl.key-store-password=bMEPW9BG server.ssl.key-store-password=bMEPW9BG
## 秘钥库类型 # 秘钥库类型
#server.ssl.keyStoreType=PKCS12 server.ssl.keyStoreType=PKCS12
## 证书别名 # 证书别名
#server.ssl.keyAlias= alias server.ssl.keyAlias= alias
#mongodb configuration #mongodb configuration
spring.data.mongodb.uri=mongodb://localhost:27017/notes5 spring.data.mongodb.uri=mongodb://localhost:27017/notes5
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论