Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 25d870a

Browse files
minor rfc
1 parent c1f56e2 commit 25d870a

File tree

3 files changed

+5
-30
lines changed

3 files changed

+5
-30
lines changed

‎src/main/java/com/springboot2/security/demosecurity/config/SpringSecurityConfig.java

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
88
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
99

10-
// http://docs.spring.io/spring-boot/docs/current/reference/html/howto-security.html
11-
// Switch off the Spring Boot security configuration
1210
@Configuration
1311
public class SpringSecurityConfig extends WebSecurityConfigurerAdapter
1412
{
@@ -61,29 +59,9 @@ public AuthenticationSuccessHandler successHandler()
6159
@Autowired
6260
public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception
6361
{
64-
6562
auth.inMemoryAuthentication()
6663
.withUser("user").password("{noop}user").roles("USER")
6764
.and()
6865
.withUser("admin").password("{noop}admin").roles("ADMIN");
6966
}
70-
71-
// withUser("user").password("{noop}password").roles("USER")
72-
73-
/*@Override
74-
public void configure(WebSecurity web) throws Exception
75-
{
76-
web.ignoring().antMatchers("/webjars/**");
77-
web.ignoring().antMatchers("/css/**","/fonts/**","/libs/**");
78-
}*/
79-
80-
/*
81-
//Spring Boot configured this already.
82-
@Override
83-
public void configure(WebSecurity web) throws Exception {
84-
web
85-
.ignoring()
86-
.antMatchers("/resources/**", "/static/**", "/css/**", "/js/**", "/images/**");
87-
}*/
88-
8967
}

‎src/main/resources/templates/fragments/footer.html

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,11 @@
1616
<a th:href="@{/logout}">Sign Out</a>
1717
</span>
1818

19-
<script type="text/javascript" th:src="@{/webjars/jquery/3.3.1/jquery.min.js/}"></script>
20-
<script type="text/javascript" th:src="@{/webjars/bootstrap/3.3.7-1/js/bootstrap.min.js}"></script>
21-
<!-- <script type="text/javascript" src="webjars/jquery/3.3.1/jquery.min.js"></script>
22-
<script type="text/javascript" src="webjars/bootstrap/3.3.7-1/js/bootstrap.min.js"></script>-->
23-
19+
<script type="application/javascript" th:src="@{/webjars/jquery/3.3.1/jquery.min.js/}"></script>
20+
<script type="application/javascript" th:src="@{/webjars/bootstrap/3.3.7-1/js/bootstrap.min.js}"></script>
2421
</footer>
2522
</div>
2623

2724
</div>
2825
</body>
29-
</html>
26+
</html>

‎src/main/resources/templates/fragments/header.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
<div th:fragment="header-css">
55
<!-- this is header-css -->
66
<link rel="stylesheet" th:href="@{/webjars/bootstrap/3.3.7-1/css/bootstrap.min.css}"
7-
href="webjars/bootstrap/3.3.7-1/css/bootstrap.min.css"/>
7+
href="webjars/bootstrap/3.3.7-1/css/bootstrap.min.css"media="screen"/>
88

99
<link rel="stylesheet" th:href="@{/css/main.css}"
10-
href="../../static/css/main.css"/>
10+
href="../../static/css/main.css"media="screen"/>
1111
</div>
1212
</head>
1313
<body>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /