我通过getModel(Tblog.class)获取到的数据输出后是{ },而我通过getPara("data")获取到的参数是{"id":"8","title":"test 8","content":"test 8"},为什么getModel(Tblog.class)获取不到参数呢。
不知道为何反而log4j打印出了以下的错误:
log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
log4j:ERROR [sun.misc.Launcher$AppClassLoader@7d05e560] whereas object of type
log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [WebAppClassLoader=1059725915@3f2a225b].
log4j:ERROR Could not instantiate appender named "stdout".
log4j:ERROR A "org.apache.log4j.DailyRollingFileAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
log4j:ERROR [sun.misc.Launcher$AppClassLoader@7d05e560] whereas object of type
log4j:ERROR "org.apache.log4j.DailyRollingFileAppender" was loaded by [WebAppClassLoader=1059725915@3f2a225b].
log4j:ERROR Could not instantiate appender named "file".