Przeglądaj źródła

登录页警告语展示

fanxw 1 rok temu
rodzic
commit
7a63c2a7f0

+ 2 - 0
src/main/java/com/chinaitop/depot/DepotWebApplication.java

@@ -3,6 +3,7 @@ package com.chinaitop.depot;
3 3
 import org.mybatis.spring.annotation.MapperScan;
4 4
 import org.springframework.boot.SpringApplication;
5 5
 import org.springframework.boot.autoconfigure.SpringBootApplication;
6
+import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
6 7
 import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
7 8
 import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
8 9
 import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
@@ -14,6 +15,7 @@ import com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration;
14 15
 @EnableDiscoveryClient
15 16
 @SpringBootApplication(exclude = PageHelperAutoConfiguration.class)//配置mybatis的配置文件使用,否则报多个分页插件
16 17
 @MapperScan(basePackages = {"com.chinaitop.depot.*.mapper"})
18
+@ConditionalOnProperty(name = "swagger.enable", havingValue = "true")
17 19
 public class DepotWebApplication {
18 20
 
19 21
 	public static void main(String[] args) {

+ 2 - 0
src/main/resources/application.properties

@@ -11,6 +11,8 @@ eureka.client.serviceUrl.defaultZone=http://tj_admin:Admin_1234@${eureka.instanc
11 11
 eureka.instance.status-page-url=http://${eureka.instance.hostname}:${server.port}/swagger-ui.html
12 12
 
13 13
 management.server.port=-1
14
+#是否开启swaggeer? true开启,false关闭,生产环境要求关闭
15
+swagger.enable=true
14 16
 #management.endpoints.enabled-by-default=false
15 17
 
16 18
 

+ 3 - 10
src/main/resources/static/app/auth/views/login.html

@@ -35,16 +35,6 @@
35 35
 										name="Password" ng-model="password" placeholder="密码" />
36 36
 
37 37
 								</div>
38
-								<!-- <div class="input-group passon-con">
39
-									<span class="input-group-addon">
40
-										<img src="../../../styles/img/login/key_icon_bg.png" />
41
-									</span> 
42
-									<input type="text" name="verify" class="form-control input-item" style="width:65px;"
43
-										ng-model="verifyCode" placeholder="手机验证码" />
44
-									<input type="button" value="发送验证码" class="reset-btn" ng-click="sendMsg()" name="sendMsg"
45
-										style="width:70px;font-size:10px;height:24px;line-height:24px;margin:5px 0 0 5px;background:url(styles/img/login/button_bg.png) 0 0 no-repeat;"/>
46
-								</div> -->
47
-								
48 38
 								<section>
49 39
 									<div class="box-information1">
50 40
 										<div class="input-group box-cesstion">
@@ -57,6 +47,9 @@
57 47
 										</a>
58 48
 									</div>
59 49
 								</section>
50
+								<section>
51
+								    <div class="box-information1" style="color: red;margin-left: 23px;margin-right: 23px;">不得传输和处理涉密、敏感、内部文件及信息</div>
52
+								</section>
60 53
 								<div class="login-btn-box">
61 54
 									<button type="button" class="reset-btn" ng-click="login()">登&nbsp;&nbsp;录</button>
62 55
 									<button type="reset" class="login-btn" value="" ng-click="reset()">重&nbsp;&nbsp;置</button>