Skip to content

Instantly share code, notes, and snippets.

View ihoneymon's full-sized avatar

Kim Ji-Heon ihoneymon

View GitHub Profile
@ihoneymon
ihoneymon / gist:4032072
Created November 7, 2012 14:56
honeymon github:gist
I'm first write.
package com.jelies.spring3tomcat7.config.quartz;
import org.quartz.spi.TriggerFiredBundle;
import org.springframework.beans.factory.config.AutowireCapableBeanFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.scheduling.quartz.SpringBeanJobFactory;
/**
* This JobFactory autowires automatically the created quartz bean with spring @Autowired dependencies.
@ihoneymon
ihoneymon / how-to-write-by-markdown.md
Last active May 3, 2024 06:23
마크다운(Markdown) 사용법

[공통] 마크다운 markdown 작성법

영어지만, 조금 더 상세하게 마크다운 사용법을 안내하고 있는
"Markdown Guide (https://www.markdownguide.org/)" 를 보시는 것을 추천합니다. ^^

아, 그리고 마크다운만으로 표현이 부족하다고 느끼신다면, HTML 태그를 활용하시는 것도 좋습니다.

1. 마크다운에 관하여

@ihoneymon
ihoneymon / springboot_javamailsender.md
Created April 13, 2015 10:13
SpringBoot: JavaMailSender를 이용한 메일전송 설정

SpringBoot: JavaMailSender를 이용한 메일전송 설정

19:04:00 ERROR c.i.i.s.s.system.MailServiceImpl - >> Occur Exception: Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. a11sm6769399pdj.54 - gsmtp

위의 메시지가 나타난다면, compile "com.sun.mail:javax.mail" 의존성을 추가하자.

○ build.gradle

@ihoneymon
ihoneymon / 20150421_springboot_markdown.md
Last active August 29, 2015 14:19
SpringBoot: FlywayDB 설정시 오류 발견

SpringBoot: FlywayDB 설정시 오류 발견, initVersion, baselineVersion

○ SpringBoot 레퍼런스 가이드 설정부분

# FLYWAY (FlywayProperties)
flyway.check-location=false # check that migration scripts location exists
flyway.locations=classpath:db/migration # locations of migrations scripts
flyway.schemas= # schemas to update

Oracle JDK에서 잘 동작하던 녀석이 IBM SDK에서 동작하지 않을 때

일반적인 자바개발환경에서는 Oracle JDK를 사용한다. 그래서 무심코 com.sun 계열의 클래스들을 사용하게 된다. 어느 운영체제에서나 실행된다고 이야기하던 솔루션이 문제를 일으키는 상황이 발생했다.

○ 문제발생

Error creating bean with name 'org.springframework.boot.actuate.autoconfigure.EndpointAutoConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.util.Map org.springframework.boot.actuate.autoconfigure.EndpointAutoConfiguration.healthIndicators; nested exception is java.lang.NoClassDefFoundError: com.sun.management.OperatingSystemMXBean; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.actuate.autoconfigure.EndpointAutoConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.util.Map org.springfra
@ihoneymon
ihoneymon / springboot-fundamental.md
Last active April 21, 2020 04:51
스프링부트springboot 이야기

1-1 스프링부트springboot 이야기

1. 스프링부트springboot란?

Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run". We take an opinionated view of the Spring platform and third-party libraries so you can get started with minimum fuss. Most Spring Boot applications need very little Spring configuration.

  • 스프링부트는 단독실행되는, 실행하기만 하면 되는 상용화 가능한 수준의 스프링 기반 애플리케이션을, 쉽게 만들어낼 수 있다.
  • 최소한의 설정으로 스프링 플랫폼과 서드파티 라이브러리들을 사용할 수 있도록 하고 있다.

1.1. 스프링부트 기능

@ihoneymon
ihoneymon / springboot-introduction.md
Last active October 14, 2022 08:44
스프링부트 소개

스프링부트 소개

0. 스프링부트SpringBoot란?

Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run". We take an opinionated view of the Spring platform and third-party libraries so you can get started with minimum fuss. Most Spring Boot applications need very little Spring configuration.

  • 스프링부트는 단독실행되는, 실행하기만 하면 되는 상용화 가능한 수준의, 스프링 기반 애플리케이션을 쉽게 만들어낼 수 있다.
  • 최소한의 설정으로 스프링 플랫폼과 서드파티 라이브러리들을 사용할 수 있도록 하고 있다.

20150815 GopherCon KOREA 2015 참관기

어느 더운 여름날(2015/08/15), 삼성동 구글 캠퍼스에서 'GopherCon Korea 2015'가 열렸다.

GopherCon Korea 2015 고퍼Gopher보다는 고랭Golang 으로 부르는 것이 익숙한 고GO 언어에 관한 컨퍼런스였다.

바빴던 프로젝트를 끝내고 몸도 마음도 회복되어 이제 외부활동을 다시 해야겠다는 여유를 가지게 되었을 때 우연히 구글플러스(https://plus.google.com/u/0/communities/115721275599816202991)에서 정보를 접했다.

아시아에 처음으로 개장했다는 '구글캠퍼스(https://www.campus.co/seoul/ko)' 구경도 갈겸 고랭에 대한 정보를 모을 수 있는 기회가 될 것 같아 신청했다.

@ihoneymon
ihoneymon / checkstyle.xml
Last active September 29, 2015 02:33
checkstyle 5.9 에서 정상동작하는 설정 xml 한글 메서드에 대해서는....
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<!-- Checkstyle configuration that checks the Google coding conventions from:
- Google Java Style https://google-styleguide.googlecode.com/svn-history/r130/trunk/javaguide.html
Checkstyle is very configurable. Be sure to read the documentation at http://checkstyle.sf.net
(or in your downloaded distribution). Most Checks are configurable, be sure
to consult the documentation. To completely disable a check, just comment