DonzBox.com(599)
-
Java8 lambda 의 활용 (기본문법)
참조1 : https://www.youtube.com/watch?v=Yyr451RBB6g 참조2 : https://www.youtube.com/watch?v=foC6t8dZHls1. void형 interface의 lambda 표현package com.donzbox._01_Void; /* * Lambda 표현식 : 여러줄의 코드를 메소드에 때려넣는 기법 (java 8~) * Lambda식 제약 : 반드시 인터페이스에는 하나의 메소드만 존재해야 함 */ interface Say { void something(); } class Person { public void greeting(final Say line) { line.something(); } } public class Application { publi..
2018.09.05 -
Java8 enum 의 활용
참조 : http://woowabros.github.io/tools/2017/07/10/java-enum-uses.html1. 데이터들 간의 연관관계 표현Worse Case package com.donzbox._01_Relation._1_WorseCase; class LegacyCase { public String getValue01(final String value) { if("Y".equals(value)) { return "1"; } else { return "2"; } } public boolean getValue02(final String value) { if("Y".equals(value)) { return true; } else { return false; } } } public class ..
2018.09.04 -
html 링크 없애는데, javascript css style 적용으로 없애는 방법
출처 : https://stackoverflow.com/questions/39331464/removing-visited-style-in-href-attribute 질문 : 이런 html 스타일을 적용하고 싶은데 어떻게 해야 하나요? 답변 : 이하와 같이 하면 됩니다. Link Link 2
2018.05.12 -
Eclipse에서 웹개발시 한글깨질때 UTF-8 한글 설정
이하의 방법 중 맞는 것 선택하여 적용해볼 것 01 .server.xml 02. web.xml Set Character Encoding filters.SetCharacterEncodingFilter encoding UTF-8 Set Character Encoding /* 03. 소스파일 utf-8형식 으로 저장프로젝트 상단에서 오른클릭 후 Properties -> Resource -> Text file encoding (UTF-8) 04. 소스코드 05. 톰켓실행옵션-Dfile.encoding=UTF-8View창 중에 Servers -> 해당톰켓서버 -> 더블클릭 ->Open launch configuration -> Common탭 -> Encoding -> UTF-8
2018.05.11 -
AWS Linux에서 MySQL서버 UTF-8 한글 설정
AWS Linux에서 MySQL서버 UTF-8 한글 설정 [ec2-user@ip-172-31-20-116 ~]$ sudo vi /etc/my.cnf [mysql] default-character-set=utf8 [mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock # Disabling symbolic-links is recommended to prevent assorted security risks symbolic-links=0 # Settings user and group are ignored when systemd is used. # If you need to run mysqld under a different user or group, ..
2018.05.06 -
mstsc 접속기록 지우기
원격접속 로그 지우기 @echo offtitle RDP Log Cleaner :: NEORAYmode con cols=50 lines=5color 0A clsREG DELETE "\\.\HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default" /va /fREG DELETE "\\.\HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers" /f del "%userprofile%\Documents\Default.rdp" /Q /A:hdel "%userprofile%\Documents\Default.rdp" /Q clsecho -----------------------------..
2018.05.04