unitils 3.3版本,spring3.2.4 html
1.Caused by: java.lang.IllegalStateException: org.slf4j.LoggerFactory could not be successfully initialized. See also http://www.slf4j.org/codes.html#unsuccessfulInit java
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/E:/user/.m2/repository/org/slf4j/slf4j-nop/1.4.3/slf4j-nop-1.4.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/E:/user/.m2/repository/org/slf4j/slf4j-log4j12/1.7.5/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: slf4j-api 1.6.x (or later) is incompatible with this binding.
SLF4J: Your binding is version 1.5.5 or earlier.
SLF4J: Upgrade your binding to version 1.6.x. spring
和日誌有關,日誌能夠正常打,但使用unitils跑安全失敗報如上錯,緣由是unitils 3.3依賴的dbunit2.2.2加載slf4j版本有兼容問題,升級dbunit版本可解決 api
注:slf4j-api,slf4j-log4j12使用的1.7.5,log4j使用1.2.17 安全
2.Caused by: org.dbunit.dataset.NoSuchColumnException: t_user.ID - (Non-uppercase input column: id) in ColumnNameToIndexes cache map. Note that the map's column names are NOT case sensitive. this
unitils 3.3默認依賴dbunit2.2.2會報如上問題,網上查了說是bug說要改源碼或者換dbunit2.4.2,不想改源碼,換2.4.2不行,dbunit換當前最新的版本2.4.9也不行,最後試了一下前幾個版本2.4.X版本中,只有2.4.3能夠,其它都不行,問題搞定 spa