提交 66c00765 编写于 作者: M ManongJu

zuul:

routes:
uaa:
sensitiveHeaders:
上级 766bf7f1
FROM frolvlad/alpine-oraclejdk8:slim
VOLUME /tmp
ADD Micro-Service-Skeleton-Register.jar Micro-Service-Skeleton-Register.jar
RUN sh -c 'touch /Micro-Service-Skeleton-Register.jar'
ENTRYPOINT ["sh", "-c" , "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /Micro-Service-Skeleton-Register.jar" ]
\ No newline at end of file
......@@ -33,6 +33,10 @@
<artifactId>spring-security-oauth2</artifactId>
<version>${spring-security-oauth.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.security.oauth.boot</groupId>
<artifactId>spring-security-oauth2-autoconfigure</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.retry</groupId>
<artifactId>spring-retry</artifactId>
......
......@@ -16,12 +16,9 @@ zuul:
host:
connect-timeout-millis: 10000
socket-timeout-millis: 60000
# routes:
# uaa:
# path: /uaa/**
# strip-prefix: true
# sensitiveHeaders:
# serviceId: authcenter
routes:
uaa:
sensitiveHeaders:
security:
oauth2:
resource:
......
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
<title>Hello World!</title>
</head>
<body>
<h1>Hello world!</h1>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
<title>Spring Security入门</title>
</head>
<body>
<h1>欢迎使用Spring Security!</h1>
<p>点击 <a th:href="@{/hello}">这里</a> 打个招呼吧</p>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:th="http://www.thymeleaf.org"
xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
<title>Spring Security Example </title>
</head>
<body>
<div th:if="${param.error}">
用户名或密码错
</div>
<div th:if="${param.logout}">
您已注销成功
</div>
<form th:action="@{/login}" method="post">
<div><label> 用户名 : <input type="text" name="username"/> </label></div>
<div><label> 密 码 : <input type="password" name="password"/> </label></div>
<div><input type="submit" value="登录"/></div>
</form>
</body>
</html>
\ No newline at end of file
......@@ -25,11 +25,12 @@
,需要解决https://github.com/spring-projects/spring-security-oauth2-boot/issues/27,
SpringBoot2.1.X已经解决,真是坑啊,所以说不要盲目的升级!!!-->
<spring-security-oauth.version>2.3.3.RELEASE</spring-security-oauth.version>
<com.spotify-version>0.4.13</com.spotify-version>
</properties>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.7.RELEASE</version>
<version>2.0.8.RELEASE</version>
</parent>
<modules>
<module>mss-common</module>
......@@ -84,6 +85,17 @@
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>alimaven</id>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册