Authored by fangyeqing

ADD:start https

1 server.port=8090 1 server.port=8090
2 2
3 -server.ssl.key-store = ${user.home}/.keystore  
4 -server.ssl.key-store-password = xkl2016  
5 -server.ssl.key-password = xkl2016 3 +#server.ssl.key-store = ${user.home}/.keystore
  4 +#server.ssl.key-store-password = xkl2016
  5 +#server.ssl.key-password = xkl2016
6 6
7 #MySQL 7 #MySQL
8 spring.datasource.url=jdbc:mysql://db.hanhezy.com:4096/hanhe_test?useUnicode=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=round&autoReconnect=true 8 spring.datasource.url=jdbc:mysql://db.hanhezy.com:4096/hanhe_test?useUnicode=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=round&autoReconnect=true
  1 +server.port=8090
  2 +
  3 +server.ssl.key-store = ${user.home}/.keystore
  4 +server.ssl.key-store-password = xkl2016
  5 +server.ssl.key-password = xkl2016
  6 +
  7 +#MySQL
  8 +spring.datasource.url=jdbc:mysql://db.hanhezy.com:4096/hanhe_test?useUnicode=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=round&autoReconnect=true
  9 +spring.datasource.username=hanhe
  10 +spring.datasource.password=HANhetest2016
  11 +
  12 +#Redis
  13 +#spring.redis.host=127.0.0.1
  14 +#spring.redis.password=foobared
  15 +spring.redis.host=r-m5e7cedd3124afd4.redis.rds.aliyuncs.com
  16 +spring.redis.password=r-m5e7cedd3124afd4:XIkaiLURedis2016
  17 +
  18 +spring.redis.port=6379
@@ -27,7 +27,7 @@ @@ -27,7 +27,7 @@
27 if (url && url.length > 1) { 27 if (url && url.length > 1) {
28 url = decodeURIComponent(url[1]); 28 url = decodeURIComponent(url[1]);
29 } else { 29 } else {
30 - url = "https://139.129.166.85:8090/api-docs"; 30 + url = "http://139.129.166.85:8090/api-docs";
31 } 31 }
32 window.swaggerUi = new SwaggerUi({ 32 window.swaggerUi = new SwaggerUi({
33 url: url, 33 url: url,
  1 +<!DOCTYPE html>
  2 +<html>
  3 +<head>
  4 + <title>Swagger UI</title>
  5 + <link rel="icon" type="image/png" href="images/favicon-32x32.png" sizes="32x32" />
  6 + <link rel="icon" type="image/png" href="images/favicon-16x16.png" sizes="16x16" />
  7 + <link href='css/typography.css' media='screen' rel='stylesheet' type='text/css'/>
  8 + <link href='css/reset.css' media='screen' rel='stylesheet' type='text/css'/>
  9 + <link href='css/screen.css' media='screen' rel='stylesheet' type='text/css'/>
  10 + <link href='css/reset.css' media='print' rel='stylesheet' type='text/css'/>
  11 + <link href='css/print.css' media='print' rel='stylesheet' type='text/css'/>
  12 + <script src='lib/jquery-1.8.0.min.js' type='text/javascript'></script>
  13 + <script src='lib/jquery.slideto.min.js' type='text/javascript'></script>
  14 + <script src='lib/jquery.wiggle.min.js' type='text/javascript'></script>
  15 + <script src='lib/jquery.ba-bbq.min.js' type='text/javascript'></script>
  16 + <script src='lib/handlebars-2.0.0.js' type='text/javascript'></script>
  17 + <script src='lib/underscore-min.js' type='text/javascript'></script>
  18 + <script src='lib/backbone-min.js' type='text/javascript'></script>
  19 + <script src='swagger-ui.js' type='text/javascript'></script>
  20 + <script src='lib/highlight.7.3.pack.js' type='text/javascript'></script>
  21 + <script src='lib/marked.js' type='text/javascript'></script>
  22 + <script src='lib/swagger-oauth.js' type='text/javascript'></script>
  23 +
  24 + <script type="text/javascript">
  25 + $(function () {
  26 + var url = window.location.search.match(/url=([^&]+)/);
  27 + if (url && url.length > 1) {
  28 + url = decodeURIComponent(url[1]);
  29 + } else {
  30 + url = "https://139.129.166.85:8090/api-docs";
  31 + }
  32 + window.swaggerUi = new SwaggerUi({
  33 + url: url,
  34 + dom_id: "swagger-ui-container",
  35 + supportedSubmitMethods: ['get', 'post', 'put', 'delete', 'patch'],
  36 + onComplete: function(swaggerApi, swaggerUi){
  37 + if(typeof initOAuth == "function") {
  38 + initOAuth({
  39 + clientId: "your-client-id",
  40 + realm: "your-realms",
  41 + appName: "your-app-name"
  42 + });
  43 + }
  44 +
  45 + $('pre code').each(function(i, e) {
  46 + hljs.highlightBlock(e)
  47 + });
  48 +
  49 + addApiKeyAuthorization();
  50 + },
  51 + onFailure: function(data) {
  52 + log("Unable to Load SwaggerUI");
  53 + },
  54 + docExpansion: "none",
  55 + apisSorter: "alpha",
  56 + showRequestHeaders: false
  57 + });
  58 +
  59 + function addApiKeyAuthorization(){
  60 + var key = encodeURIComponent($('#input_apiKey')[0].value);
  61 + if(key && key.trim() != "") {
  62 + var apiKeyAuth = new SwaggerClient.ApiKeyAuthorization("api_key", key, "query");
  63 + window.swaggerUi.api.clientAuthorizations.add("api_key", apiKeyAuth);
  64 + log("added key " + key);
  65 + }
  66 + }
  67 +
  68 + $('#input_apiKey').change(addApiKeyAuthorization);
  69 +
  70 + // if you have an apiKey you would like to pre-populate on the page for demonstration purposes...
  71 + /*
  72 + var apiKey = "myApiKeyXXXX123456789";
  73 + $('#input_apiKey').val(apiKey);
  74 + */
  75 +
  76 + window.swaggerUi.load();
  77 +
  78 + function log() {
  79 + if ('console' in window) {
  80 + console.log.apply(console, arguments);
  81 + }
  82 + }
  83 + });
  84 + </script>
  85 +</head>
  86 +
  87 +<body class="swagger-section">
  88 +<div id='header'>
  89 + <div class="swagger-ui-wrap">
  90 + <a id="logo" href="http://swagger.io">swagger</a>
  91 + <form id='api_selector'>
  92 + <div class='input'><input placeholder="http://example.com/api" id="input_baseUrl" name="baseUrl" type="text"/></div>
  93 + <div class='input'><input placeholder="api_key" id="input_apiKey" name="apiKey" type="text"/></div>
  94 + <div class='input'><a id="explore" href="#">Explore</a></div>
  95 + </form>
  96 + </div>
  97 +</div>
  98 +
  99 +<div id="message-bar" class="swagger-ui-wrap">&nbsp;</div>
  100 +<div id="swagger-ui-container" class="swagger-ui-wrap"></div>
  101 +</body>
  102 +</html>