spring 코드 보다 보니
classname.class 라는 희한한 문법이 보여서 검색
@Configuration @EnableAutoConfiguration public class MyApplication { // ... Bean definitions public static void main(String[] args) throws Exception { SpringApplication.run(MyApplication.class, args); } } |
[링크 : https://docs.spring.io/spring-boot/docs/current/api/org/springframework/boot/SpringApplication.html]
public final Class<?> getClass() Returns the runtime class of this Object. The returned Class object is the object that is locked by static synchronized methods of the represented class. |
[링크 : https://docs.oracle.com/javase/6/docs/api/java/lang/Object.html#getClass%28%29]
[링크 : https://stackoverflow.com/questions/10477375/what-does-classname-class-return]
문득 헷갈려서 찾게 되네.
클래스는 설계도 이고 오브젝트는 class의 instance이다 라고 정의하면 되려나?
[링크 : http://itsuit.tistory.com/45]
'Programming > Java(Spring)' 카테고리의 다른 글
sts gradule spring boot howto (0) | 2018.12.28 |
---|---|
STS gradle 버전 문제가.. 혹시.. (0) | 2018.12.28 |
gradle + STS + openJDK 설치 -_- (0) | 2018.12.27 |
gradle to buildship (0) | 2018.12.27 |
sts(Spring Tool Suite) version (2) | 2018.12.26 |