Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们有一个包含大量类的庞大项目,我们想将 logback 添加到所有类中:
import org.slf4j.Logger; import org.slf4j.LoggerFactory;
并添加以下行:
private static final Log logger= LoggerFactory.getLogger(MyClass.class);
有没有自动的方法来进行这种重构/注入?