web2020. 8. 19. 15:08

[html]thymeleaf list size 표현하는방법

 

<div th:text="${#lists.size('listname')}"></div>

 

 

Posted by thdeodls85
web2020. 8. 5. 17:04

[html]long  -> int형으로 변환하는 방법

 

html에서

 

value.intValue() -> 이렇게 하면 int형으로 변경된다. 

Posted by thdeodls85
web2020. 7. 29. 14:02

[html]thymeleaf if 조건문 null check방법

 

<td th:if="${data!= null}" th:text="${data}"/>

Posted by thdeodls85
web2020. 7. 27. 16:10

[html]html안에 html넣는 방법

 

header처럼 공통으로 뺄라면..

 

header.html만들고...

 

<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>

<script type="text/javascript">   

$(document).ready( function() {

$("#header").load("common/header.html");  

$("#leftside").load("common/leftside.html");  

});

</script>

 

------------------------------------------

 

<body>

<div id="header"></div> 

</body>

Posted by thdeodls85
web2020. 7. 22. 12:00

[html]button onclick 이동가능하게 하는 방법

 

<button class="btn btn-outline-success" type="button" onclick="location.href='/logout'">로그아웃</button>

 

-> 내부의 logout url 이동

 

    <button class="btn btn-outline-success" type="button" onclick="location.href='http://www.naver.com'">naver.com gogo</button>

 

-> http url 이동 

Posted by thdeodls85
web2020. 7. 15. 17:44

[spring boot]cannot pass a null grantedauthority collection 해결방법

 

security 구현중인데.. 

 

역활을 설정 해야 한단다...

 

auth.inMemoryAuthentication().withUser("abc").password(passwordEncoder().encode("abc")).roles("user");

Posted by thdeodls85
web2020. 5. 11. 11:54

[web]button tag link 방법

 

<a href>www.naver.com<a>

 

이렇게 하면 될줄 았는데..

 

onclick = "location.href = '#' "

 

[참조] https://m.blog.naver.com/rain483/220529222723

 

[ HTML ]

 

안녕하세요 부르곰입니다. 이번 포스팅은 오랜만에 html 이네요.버튼에 링크 거는 방법입니다. 버튼에 링크...

blog.naver.com

 

Posted by thdeodls85
web2020. 5. 8. 16:53

[spring boot]chrome live reload 사용방법

 

spring boot 에서 html 변경 하고 chrome 에서 확인 할려고 할 때마다 리플래쉬 해야 한다..

 

하지만.. live reload 설치하면 바로 적용가능하다.. 

 

장점은 당연히 속도가 빨라진다..

 

자 그런데 난 분명히 html소스를 변경했는데.. 적용이 안된다..??

 

그러면 build-> project automatically 적용 시키면 된다

 

[참조] https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei?hl=ko

 

LiveReload

Provides Chrome browser integration for the official LiveReload apps (Mac & Windows) and third-parties like guard-livereload and…

chrome.google.com

 

Posted by thdeodls85