본문 바로가기

전체 글145

[JAVA 8] 메소드/생성자 레퍼런스 # 메소드 레퍼런스 표현 - object::instanceMethod- Class::staticMethod- Class::instanceMethod ex)button.setOnAction(Syste.out::println); - super::instanceMethod ex) 1. Greet 클래스 생성2. ConcurrentGreet extends Greet 생성3. ConcurrentGreet greet() 함수 구현 : Thread(super::greet); # 생성자 레퍼런스 표현- Class::new ex) Button[] buttons = stream.toArray(Button[]::new) 2019. 2. 16.
[Spring] CSV 다운로드 - AbstractView & supercsv 작성 중~ https://github.com/ElephantBoy/exceldownload 2019. 2. 13.
[Spring] webjars 사용하기 1. Dependency 추가하기 org.webjars.bower jquery 3.3.1 2. WebConfigurer 구현하기 @Configuration public class WebConfig implements WebMvcConfigurer { @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { registry .addResourceHandler("/webjars/**") .addResourceLocations("/webjars/"); } } 3. Html에서 사용하기 2019. 2. 12.
[Intellij] File and Code Templates # Thymeleaf 2019. 1. 19.
[Flutter][!] Android toolchain - develop for Android devices (Android SDK 28.0.3) ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses https://github.com/flutter/flutter/issues/16280 C:\Users\%user%\AppData\Local\Android\Sdk\tools\binopen a Terminal on this folder, and run the command:sdkmanager --licenses 2019. 1. 12.
[Spring] 스프링 설정 파일 분리 2018. 12. 28.
[Spring] Thymeleaf 설정(Layout 포함) 1. Maven 추가 org.thymeleaf thymeleaf org.thymeleaf thymeleaf-spring5 nz.net.ultraq.thymeleaf thymeleaf-layout-dialect 2. application.properties 수정 spring.mvc.view.prefix=/ spring.mvc.view.suffix=.html 3. Controller 추가 4 View 파일 추가 http://ebom.tistory.com/entry/Thymeleaf-%EC%84%A4%EC%A0%95Layout-%ED%8F%AC%ED%95%A8 2018. 12. 7.
REST API를 버리고 Graph QL를 선택한 이유? (Why GraphQL is the future) https://www.youtube.com/watch?v=1imQ1_aOQvU 2018. 12. 5.
[Spring] Spring Boot Admin 설정 # 서버 쪽 1. Application.java @EnableAdminServer 2. pom.xml de.codecentric spring-boot-admin-starter-server 2.1.1 org.springframework.boot spring-boot-starter-web # 클라이언트 쪽 1. application.properties server.port=8081 spring.boot.admin.client.url=http://localhost:8080 management.endpoints.web.exposure.include=* 2. pom.xml org.springframework.boot spring-boot-starter-actuator de.codecentric spring-boo.. 2018. 12. 3.
[Spring] MySQL 오류(application.properties 관련) - ´???¹?±¹ ???ؽ? spring.datasource.url=jdbc:mysql://localhost:3306/loan?serverTimezone=UTC KST JST 2018. 11. 28.
스티브 잡스의 A급과 B급 https://blog.naver.com/PostView.nhn?blogId=businessinsight&logNo=221039428481&proxyReferer=https%3A%2F%2Fwww.youtube.com%2F https://blog.naver.com/PostView.nhn?blogId=businessinsight&logNo=221039428481&proxyReferer=https%3A%2F%2Fwww.youtube.com%2F 2018. 9. 25.
[Spring] 프로퍼티 서버 재기동없이 리로드 2018. 8. 15.
톰캣 시간 설정 1. linux timezone 설정참조문서: http://docs.aws.amazon.com/ko_kr/AWSEC2/latest/UserGuide/set-time.html기본적으로 EC2 인스턴스는 UTC 표준시간대로 설정된다. 이는 date를 쳐보면 알 수 있다. 이것을 한국시간대에 변경하려면, localtime 심볼릭링크를 지워주고 다시 잡아주면 된다.rm /etc/localtimeln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime이 후,# dateThu May 11 03:53:23 KST 2017를 확인할 수 있다.2. tomcat timezone 설정그러나 tomcat의 시간은 리눅스서버의 시간과는 별도였다.... 톰캣에서는 /usr/share/tomc.. 2018. 7. 31.
[JSP] JSP 관련 Maven org.apache.tomcat.embed tomcat-embed-jasper provided 2018. 7. 12.
Vmware Tools 설치 sudo apt-get install open-vm-tools-desktop 2018. 7. 1.
한글 설정 # 시스템 한글화sudo apt update && sudo apt upgradesudo apt install ubuntu-restricted-extras 2018. 6. 30.
UBUNTU 설치 및 원격 접속 허용 # 설치apt-get updateapt-get install mysql-serverapt-get install mariadb-server # 사용자 추가create user '[user]'@'%' identified by '[password]';grant all privileges on *.* to '[user]'@'%';grant all privileges on [db].* to '[user]'@'%'; # 원격허용(Root 접속)cd /etc/mysql/mysql.conf.dvi mysqld.cnf /etc/mysql/mariadb.conf.d$ sudo vi 50-server.cnf # 서비스 재시작sudo service mysql restart 2018. 6. 25.
빌드 후 처리 중 오류 # 다음과 같은 오류 발생 # 해결 톰캣을 재설치하고 난 후 정상적으로 빌드 후 처리가 됨(왜인지는 알 수가 없음) 2018. 6. 21.
[JS] 배열의 값 위치 변경 // varTabs 탭변수 위치 변경 function fn_changeVarTabs(varTabs, oldIdx, newIdx){ var item = varTabs.splice(oldIdx,1); varTabs.splice(newIdx, 0, item[0]); return varTabs; } 2018. 6. 20.
[Spring] Tiles 환경 설정 1. MAVEN 추가 org.apache.tiles tiles-core ${tiles.version} org.apache.tiles tiles-jsp ${tiles.version} 2. Controller 추가 @Controller public class BaseController { @RequestMapping("/tiles") public String tiles() { return "content:/tiles"; } } 3. Tiles 환경 @Configuration public class TilesConfig { @Bean public TilesConfigurer tilesConfigurer() { final TilesConfigurer configurer = new TilesConfigurer().. 2018. 5. 6.