Using hibernate to run the resulting red Word solution, although not affected, but looked uncomfortable

Source: Internet
Author: User

Slf4j:the requested version 1.6 by your SLF4J binding are not compatible with [1.5.5, 1.5.6, 1.5.7, 1.5.8]
Slf4j:see Http://www.slf4j.org/codes.html#version_mismatch for further details.
Log4j:warn No Appenders could is found for logger (org.hibernate.cfg.Environment).
Log4j:warn Initialize the log4j system properly.

Log4j:warn See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.


In Lib, the version of SLF4J at this time is 1.6, while the slf4j-log4j version is 1.5.8. This error was caused by the incompatibility of the version. Also, after downloading the 1.6 version of slf4j-log4j, fix the problem.

1. Import 19 jar Packages HTTP://PAN.BAIDU.COM/S/1SJLXSBB

2. Deploy log4j.properties under SRC

log4j.rootlogger=console,filelog4j.addivity.org.apache=true# \u5e94\u7528\u4e8e\u63a7\u5236\ U53f0log4j.appender.console=org.apache.log4j.consoleappenderlog4j.appender.console.threshold= infolog4j.appender.console.target=system.outlog4j.appender.console.encoding=gbklog4j.appender.console.layout= Org.apache.log4j.patternlayoutlog4j.appender.console.layout.conversionpattern=[framework]%d-%c-%-4r [%t]%-5p%c% X-%m%n# \u6bcf\u5929\u65b0\u5efa\u65e5\u5fd7log4j.appender.a1= org.apache.log4j.dailyrollingfileappenderlog4j.appender.a1.file=c:/log4j/loglog4j.appender.a1.encoding= Gbklog4j.appender.a1.threshold=debuglog4j.appender.a1.datepattern= '. ' yyyy-mm-ddlog4j.appender.a1.layout=org.apache.log4j.patternlayoutlog4j.appender.a1.layout.conversionpattern=%d {ABSOLUTE}%5p%c{1}:%l:%m%n#\u5e94\u7528\u4e8e\u6587\u4ef6log4j.appender.file= Org.apache.log4j.fileappenderlog4j.appender.file.file=c:/log4j/file.loglog4j.appender.file.append= Falselog4j.appender.file.encoding=gbklog4j.appender.file.layout=org.apache.log4j.patternlayoutlog4j.appender.file.layout.conversionpattern=[framework]%d-%c-%-4r [%t]%-5p%c%x- %m%n# \u5e94\u7528\u4e8e\u6587\u4ef6\u56de\u6edalog4j.appender.rolling_file= Org.apache.log4j.RollingFileAppenderlog4j.appender.ROLLING_FILE. Threshold=errorlog4j.appender.rolling_file. File=rolling.loglog4j.appender.rolling_file. Append=truelog4j.appender.console_file. Encoding=gbklog4j.appender.rolling_file. Maxfilesize=10kblog4j.appender.rolling_file. Maxbackupindex=1log4j.appender.rolling_file.layout=org.apache.log4j.patternlayoutlog4j.appender.rolling_ File.layout.conversionpattern=[framework]%d-%c-%-4r [%t]%-5p%c%x-%m%n#\u81ea\u5b9a\ u4E49Appenderlog4j.appender.im = Net.cybercorlin.util.logger.appender.IMAppenderlog4j.appender.im.host = Mail.cybercorlin.netlog4j.appender.im.username = Usernamelog4j.appender.im.password = Passwordlog4j.appender.im.recipient = [email protected]log4j.appender.im.layout= Org.apache.log4j.PatternLayoutlog4j.appender.im.layout.ConVersionpattern =[framework]%d-%c-%-4r [%t]%-5p%c%x-%m%n#\u5e94\u7528\u4e8esocketlog4j.appender.socket=org.apache . log4j. rollingfileappenderlog4j.appender.socket.remotehost=localhostlog4j.appender.socket.port= 5001log4j.appender.socket.locationinfo=true# Set up for Log Facter 5log4j.appender.socket.layout= Org.apache.log4j.patternlayoutlog4j.appender.socet.layout.conversionpattern=[start]%d{date}[date]%n%p[priority ]%n%x[ndc]%n%t[thread]%n%c[category]%n%m[message]%n%n# Log Factor 5 appenderlog4j.appender.lf5_appender= Org.apache.log4j.lf5.LF5Appenderlog4j.appender.LF5_APPENDER. maxnumberofrecords=2000# \u53d1\u9001\u65e5\u5fd7\u7ed9\u90ae\u4ef6log4j.appender.mail= Org.apache.log4j.net.smtpappenderlog4j.appender.mail.threshold=fatallog4j.appender.mail.buffersize=10[email  protected]log4j.appender.mail.smtphost=www.wusetu.comlog4j.appender.mail.subject=log4j Message[email  protected]log4j.appender.mail.layout= Org.apache.log4j.PatternLayoutlog4j.appender.MAIL.layout.ConversionPatTern=[framework]%d-%c-%-4r [%t]%-5p%c%x-%m%n 



Using hibernate to run the resulting red Word solution, although not affected, but looked uncomfortable

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.