java.lang.String cannot be converted to org.slf4j.Marker
问题 I'm using import lombok.extern.slf4j.Slf4j; for my class, and here's my log statement: log.info("{} : {} - {}", String1, String2, String3); But it fails to compile and complaining the above line: java.lang.String cannot be converted to org.slf4j.Marker Any ideas please? 回答1: I guess that you are willing to use info(String format, Object... arguments) and are wondering why the method that is really called is info(Marker marker, String format, Object arg1, Object arg2) . This is related to Most