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

246

上级 f2b6a7c8
...@@ -33,21 +33,21 @@ public class UnionApplication { ...@@ -33,21 +33,21 @@ 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;
// } }
} }
...@@ -12,15 +12,15 @@ server.ssl.keyStoreType=PKCS12 ...@@ -12,15 +12,15 @@ server.ssl.keyStoreType=PKCS12
server.ssl.keyAlias= alias server.ssl.keyAlias= alias
#mongodb configuration #mongodb configuration
spring.data.mongodb.uri=mongodb://localhost:27017/notes3 spring.data.mongodb.uri=mongodb://192.168.1.246:27017/notes3
# servlet configuration # servlet configuration
spring.servlet.multipart.max-file-size=100MB spring.servlet.multipart.max-file-size=100MB
spring.servlet.multipart.max-request-size=1000MB spring.servlet.multipart.max-request-size=1000MB
spring.redis.host=localhost spring.redis.host=192.168.1.246
spring.redis.port=6379 spring.redis.port=6379
spring.redis.timeout=5000ms spring.redis.timeout=5000ms
# es configuraiton # es configuraiton
es.ip=localhost es.ip=192.168.1.246
logging.file=./log/note.log logging.file=./log/note.log
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论