Creating new live-templates with import statements in IntelliJ IDEA

前端 未结 4 920
广开言路
广开言路 2021-02-02 06:06

Here is the Eclipse template that I want to port:

${:import(org.apache.log4j.Logger)}
private static final Logger LOG = Logger.getLogger(${enclosing_type}.class)         


        
4条回答
  •  北海茫月
    2021-02-02 06:20

    For apache commons logging use:

    private static final org.apache.commons.logging.Log LOG = org.apache.commons.logging.LogFactory.getLog($CLASS_NAME$.class);$END$
    

提交回复
热议问题