https://stackoverflow.com/questions/12967451/how-do-value-annotations-work-in-spring


eclipse icon

eclipse 2019.11.11 10:49

https://help.eclipse.org/2019-06/index.jsp?topic=/org.eclipse.jdt.doc.user/reference/ref-icons.htm


Annotation 뒤에 아무 코드도 없을 때 

 

/* O */
    @Autowired
    private AppleRepository appleRepository;

/* X */
    @Autowired


출처 http://gwons.blogspot.com/2014/11/java.html

String originalStr = "Å×½ºÆ®"; // 테스트 
String [] charSet = {"utf-8","euc-kr","ksc5601","iso-8859-1","x-windows-949"};
  
for (int i=0; i<charSet.length; i++) {
 for (int j=0; j<charSet.length; j++) {
  try {
   System.out.println("[" + charSet[i] +"," + charSet[j] +"] = " + new String(originalStr.getBytes(charSet[i]), charSet[j]));
  } catch (UnsupportedEncodingException e) {
   e.printStackTrace();
  }
 }
}


https://howtodoinjava.com/spring-aop/aspectj-around-annotation-example/


The void operator evaluates the given expression and then returns undefined.

(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/void)