application.properties 1.21 KB
Newer Older
小柒2012 committed
1 2 3 4 5
# \u9879\u76eecontextPath\uff0c\u4e00\u822c\u5728\u6b63\u5f0f\u53d1\u5e03\u7248\u672c\u4e2d
server.context-path=/mongodb
# \u670d\u52a1\u7aef\u53e3
server.port=8080
# session\u6700\u5927\u8d85\u65f6\u65f6\u95f4(\u5206\u949f)\uff0c\u9ed8\u8ba4\u4e3a30
小柒2012 committed
6
server.session-timeout=20
小柒2012 committed
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
# \u8be5\u670d\u52a1\u7ed1\u5b9aIP\u5730\u5740\uff0c\u542f\u52a8\u670d\u52a1\u5668\u65f6\u5982\u672c\u673a\u4e0d\u662f\u8be5IP\u5730\u5740\u5219\u629b\u51fa\u5f02\u5e38\u542f\u52a8\u5931\u8d25\uff0c\u53ea\u6709\u7279\u6b8a\u9700\u6c42\u7684\u60c5\u51b5\u4e0b\u624d\u914d\u7f6e
# server.address=192.168.16.11

# tomcat\u6700\u5927\u7ebf\u7a0b\u6570\uff0c\u9ed8\u8ba4\u4e3a200
server.tomcat.max-threads=800
# tomcat\u7684URI\u7f16\u7801
server.tomcat.uri-encoding=UTF-8

#mongo2.x\u652f\u6301\u4ee5\u4e0a\u4e24\u79cd\u914d\u7f6e\u65b9\u5f0f mongo3.x\u4ec5\u652f\u6301uri\u65b9\u5f0f
#mongodb note:mongo3.x will not use host and port,only use uri
#spring.data.mongodb.host=47.94.232.109
#spring.data.mongodb.port=27017
#spring.data.mongodb.database=itstyle
#\u6ca1\u6709\u8bbe\u7f6e\u5bc6\u7801
#spring.data.mongodb.uri=mongodb://47.94.232.109:27017/itstyle
#\u8bbe\u7f6e\u4e86\u5bc6\u7801
spring.data.mongodb.uri=mongodb://itstyle:itstyle@47.94.232.109:27017/itstyle