NutzCN Logo
问答 请问nutz mvc支持直接接收对象内部的文件属性吗
发布于 324天前 作者 hbh3819 268 次浏览 复制 上一个帖子 下一个帖子
标签:
public class MobileNights {
	
	private File file;
}
@At("/save/nightrecords")
@AdaptBy(type = UploadAdaptor.class, args = { "ioc:myUpload" })
public Object pic(@Param("::n") MobileNights nights, HttpServletRequest req){
}
29 回复
@Param("..")MobileNights  nights

改了也无法接收

把参数名直接改成字段属性后其他参数也都接收不到了

还有默认的PairAdaptor无法转换contentType为multipart/form-data的请求吗

贴日志看看

十一月 26, 2018 1:55:54 下午 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files (x86)\Java\jre1.8.0_171\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:/Program Files (x86)/Java/jre1.8.0_171/bin/server;D:/Program Files (x86)/Java/jre1.8.0_171/bin;D:/Program Files (x86)/Java/jre1.8.0_171/lib/amd64;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;D:\Program Files (x86)\Java\jre1.8.0_171;D:\software\tortoiseSVN\bin;D:\develop\apache-maven-3.3.9\bin;C:\Program Files\MySQL\MySQL Utilities 1.6\;D:\Program Files\MySQL\MySQL Server 5.6\bin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;D:\Program Files\VisualSVN Server\bin;D:\Program Files\VanDyke Software\Clients\;C:\Users\hbh\AppData\Local\Microsoft\WindowsApps;D:\Program Files (x86)\Java\jre1.8.0_171\bin;;D:\Program Files (x86)\jee-oxygen\eclipse;;.
十一月 26, 2018 1:55:54 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:oils' did not find a matching property.
十一月 26, 2018 1:55:54 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
十一月 26, 2018 1:55:54 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
十一月 26, 2018 1:55:54 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 472 ms
十一月 26, 2018 1:55:54 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
十一月 26, 2018 1:55:54 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.52
十一月 26, 2018 1:55:56 下午 org.apache.catalina.util.SessionIdGenerator createSecureRandom
信息: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [145] milliseconds.
十一月 26, 2018 1:56:01 下午 org.apache.catalina.core.ApplicationContext log
信息: No Spring WebApplicationInitializer types detected on classpath
2018-11-26 13:56:01  INFO [NutFilter] - NutFilter[nutz] starting ...
2018-11-26 13:56:01  INFO [NutLoading] - Nutz Version : 1.r.63.r5-20180110 
2018-11-26 13:56:01  INFO [NutLoading] - Nutz.Mvc[nutz] is initializing ...
2018-11-26 13:56:01  INFO [AnnotationIocLoader] -  > scan 'cn.com.unis'
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'assetCommonAction                       ' - cn.com.unis.asset.action.AssetCommonAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'assetRepairAction                       ' - cn.com.unis.asset.action.AssetRepairAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'assetStatisticAction                    ' - cn.com.unis.asset.action.AssetStatisticAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'assetService                            ' - cn.com.unis.asset.service.impl.AssetServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'buiPlanAction                           ' - cn.com.unis.bui.action.BuiPlanAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'buiProjectAction                        ' - cn.com.unis.bui.action.BuiProjectAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'buiReportAction                         ' - cn.com.unis.bui.action.BuiReportAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'buiWorkAction                           ' - cn.com.unis.bui.action.BuiWorkAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'buiPlanService                          ' - cn.com.unis.bui.service.impl.BuiPlanServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'buiProjectService                       ' - cn.com.unis.bui.service.impl.BuiProjectServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'buiReportService                        ' - cn.com.unis.bui.service.impl.BuiReportServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'buiWorkService                          ' - cn.com.unis.bui.service.impl.BuiWorkServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'checkAction                             ' - cn.com.unis.check.action.CheckAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'checkService                            ' - cn.com.unis.check.service.impl.CheckServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'carManageAction                         ' - cn.com.unis.coo.action.CarManageAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'conractAction                           ' - cn.com.unis.coo.action.ConractAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'libAction                               ' - cn.com.unis.coo.action.LibAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'licensingAction                         ' - cn.com.unis.coo.action.LicensingAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'meetAction                              ' - cn.com.unis.coo.action.MeetAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'notifyAction                            ' - cn.com.unis.coo.action.NotifyAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'planNewAction                           ' - cn.com.unis.coo.action.PlanNewAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'usesAction                              ' - cn.com.unis.coo.action.UsesAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'weeklyAction                            ' - cn.com.unis.coo.action.WeeklyAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'carService                              ' - cn.com.unis.coo.service.impl.CarServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'contractService                         ' - cn.com.unis.coo.service.impl.ConractServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'libService                              ' - cn.com.unis.coo.service.impl.LibServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'licensingService                        ' - cn.com.unis.coo.service.impl.LicensingServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'meetService                             ' - cn.com.unis.coo.service.impl.MeetServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'notifyService                           ' - cn.com.unis.coo.service.impl.NotifyServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'planNewService                          ' - cn.com.unis.coo.service.impl.PlanNewServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'usesService                             ' - cn.com.unis.coo.service.impl.UsesServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'weeklyService                           ' - cn.com.unis.coo.service.impl.WeeklyServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'loginAdminFilter                        ' - cn.com.unis.core.filter.LoginAdminFilter
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'baseService                             ' - cn.com.unis.core.service.impl.BaseServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'belongService                           ' - cn.com.unis.core.service.impl.BelongServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'exportAction                            ' - cn.com.unis.export.action.ExportAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'importAction                            ' - cn.com.unis.export.action.ImportAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'DateFmt                                 ' - cn.com.unis.export.format.DateFmt
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'NumberFmt                               ' - cn.com.unis.export.format.NumberFmt
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'exportServiceImpl                       ' - cn.com.unis.export.service.impl.ExportServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'financeAction                           ' - cn.com.unis.finance.action.FinanceAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'financeService                          ' - cn.com.unis.finance.service.impl.FinanceServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'cilentAction                            ' - cn.com.unis.infos.action.CilentAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'companyAction                           ' - cn.com.unis.infos.action.CompanyAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'craneAction                             ' - cn.com.unis.infos.action.CraneAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'dockAction                              ' - cn.com.unis.infos.action.DockAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'infoAction                              ' - cn.com.unis.infos.action.InfoAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'oilAction                               ' - cn.com.unis.infos.action.OilAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'oilAreaAction                           ' - cn.com.unis.infos.action.OilAreaAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'oilTankAction                           ' - cn.com.unis.infos.action.OilTankAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'railwayAction                           ' - cn.com.unis.infos.action.RailwayAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'sendOilTableAction                      ' - cn.com.unis.infos.action.SendOilTableAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'infoService                             ' - cn.com.unis.infos.service.impl.InfoServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'materialAnlsAction                      ' - cn.com.unis.material.anls.action.MaterialAnlsAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'materialAnlsService                     ' - cn.com.unis.material.anls.service.impl.MaterialAnlsServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'cEBACalAction                           ' - cn.com.unis.material.center.action.CEBACalAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'cEBFCalAction                           ' - cn.com.unis.material.center.action.CEBFCalAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'cEBoatOilCheckAction                    ' - cn.com.unis.material.center.action.CEBoatOilCheckAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'cECECalAction                           ' - cn.com.unis.material.center.action.CECECalAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'cENoticeAction                          ' - cn.com.unis.material.center.action.CENoticeAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'cEOilCheckAction                        ' - cn.com.unis.material.center.action.CEOilCheckAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'cEPlanAction                            ' - cn.com.unis.material.center.action.CEPlanAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'cEReportAction                          ' - cn.com.unis.material.center.action.CEReportAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'cETaskAction                            ' - cn.com.unis.material.center.action.CETaskAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'materialCEnterService                   ' - cn.com.unis.material.center.service.impl.MaterialCEnterServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'cOCOCalAction                           ' - cn.com.unis.material.cout.action.COCOCalAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'cONoticeAction                          ' - cn.com.unis.material.cout.action.CONoticeAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'cOOilCheckAction                        ' - cn.com.unis.material.cout.action.COOilCheckAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'cOOutCheckAction                        ' - cn.com.unis.material.cout.action.COOutCheckAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'cOPlanAction                            ' - cn.com.unis.material.cout.action.COPlanAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'cORecMoneyAction                        ' - cn.com.unis.material.cout.action.CORecMoneyAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'cOTACalAction                           ' - cn.com.unis.material.cout.action.COTACalAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'cOTaskAction                            ' - cn.com.unis.material.cout.action.COTaskAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'cOTFCalAction                           ' - cn.com.unis.material.cout.action.COTFCalAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'materialCOutService                     ' - cn.com.unis.material.cout.service.impl.MaterialCOutServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'stockCalAction                          ' - cn.com.unis.material.cstock.action.StockCalAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'stockCheckAction                        ' - cn.com.unis.material.cstock.action.StockCheckAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'materialCStockService                   ' - cn.com.unis.material.cstock.service.impl.MaterialCStockServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'pECECalAction                           ' - cn.com.unis.material.penter.action.PECECalAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'pENoticeAction                          ' - cn.com.unis.material.penter.action.PENoticeAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'pEOilCheckAction                        ' - cn.com.unis.material.penter.action.PEOilCheckAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'pETACalAction                           ' - cn.com.unis.material.penter.action.PETACalAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'pETaskAction                            ' - cn.com.unis.material.penter.action.PETaskAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'pETFCalAction                           ' - cn.com.unis.material.penter.action.PETFCalAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'materialPEnterService                   ' - cn.com.unis.material.penter.service.impl.MaterialPEnterServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'pOCOCalAction                           ' - cn.com.unis.material.pout.action.POCOCalAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'pONoticeAction                          ' - cn.com.unis.material.pout.action.PONoticeAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'pOOilCheckAction                        ' - cn.com.unis.material.pout.action.POOilCheckAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'pOTACalAction                           ' - cn.com.unis.material.pout.action.POTACalAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'pOTaskAction                            ' - cn.com.unis.material.pout.action.POTaskAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'pOTFCalAction                           ' - cn.com.unis.material.pout.action.POTFCalAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'materialPOutService                     ' - cn.com.unis.material.pout.service.impl.MaterialPOutServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'certificateAction                       ' - cn.com.unis.material.sales.action.CertificateAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'manifestAction                          ' - cn.com.unis.material.sales.action.ManifestAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'oweAction                               ' - cn.com.unis.material.sales.action.OweAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'materialSaleService                     ' - cn.com.unis.material.sales.service.impl.MaterialSaleServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'materialStatisticAction                 ' - cn.com.unis.material.statistics.action.MaterialStatisticAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'materialStaticService                   ' - cn.com.unis.material.statistics.service.impl.MaterialStaticServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'mobileAction                            ' - cn.com.unis.mobile.action.MobileAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'mobileService                           ' - cn.com.unis.mobile.service.impl.MobileServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'attendanceAction                        ' - cn.com.unis.personnel.assess.action.AttendanceAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'compositionAction                       ' - cn.com.unis.personnel.assess.action.CompositionAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'normalAction                            ' - cn.com.unis.personnel.assess.action.NormalAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'pensionAction                           ' - cn.com.unis.personnel.assess.action.PensionAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'salaryAction                            ' - cn.com.unis.personnel.assess.action.SalaryAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'salaryExAction                          ' - cn.com.unis.personnel.assess.action.SalaryExAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'userPuniAction                          ' - cn.com.unis.personnel.assess.action.UserPuniAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'yearAssAction                           ' - cn.com.unis.personnel.assess.action.YearAssAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'salaryExportsService                    ' - cn.com.unis.personnel.assess.service.impl.SalaryExportImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'salaryImportsService                    ' - cn.com.unis.personnel.assess.service.impl.SalaryImportImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'contractAction                          ' - cn.com.unis.personnel.info.action.ContractAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'healthAction                            ' - cn.com.unis.personnel.info.action.HealthAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'sitehealthAction                        ' - cn.com.unis.personnel.info.action.SitehealthAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'trainAlAction                           ' - cn.com.unis.personnel.info.action.TrainAlAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'trainCoAction                           ' - cn.com.unis.personnel.info.action.TrainCoAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'trainCountAction                        ' - cn.com.unis.personnel.info.action.TrainCountAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'userInfoDetail                          ' - cn.com.unis.personnel.info.action.UserInfoDetail
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'personnelService                        ' - cn.com.unis.personnel.info.service.impl.PersonnelServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'educationAction                         ' - cn.com.unis.personnel.info.userinfo.action.EducationAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'goabroadAction                          ' - cn.com.unis.personnel.info.userinfo.action.GoabroadAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'positionAction                          ' - cn.com.unis.personnel.info.userinfo.action.PositionAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'postrankAction                          ' - cn.com.unis.personnel.info.userinfo.action.postrankAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'punishmentAction                        ' - cn.com.unis.personnel.info.userinfo.action.PunishmentAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'relationAction                          ' - cn.com.unis.personnel.info.userinfo.action.RelationAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'technologyAction                        ' - cn.com.unis.personnel.info.userinfo.action.TechnologyAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'trainAction                             ' - cn.com.unis.personnel.info.userinfo.action.TrainAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'userInfoAction                          ' - cn.com.unis.personnel.info.userinfo.action.UserInfoAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'userstatisticsAction                    ' - cn.com.unis.personnel.info.userinfo.action.UserstatisticsAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'cmsAction                               ' - cn.com.unis.portal.action.CmsAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'portalAction                            ' - cn.com.unis.portal.action.PortalAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'cmsService                              ' - cn.com.unis.portal.service.impl.CmsServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'portalService                           ' - cn.com.unis.portal.service.impl.PortalServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'remindAction                            ' - cn.com.unis.remind.action.RemindAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'remindService                           ' - cn.com.unis.remind.service.impl.RemindServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'checksAction                            ' - cn.com.unis.saf.action.ChecksAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'dangerAction                            ' - cn.com.unis.saf.action.DangerAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'defendAction                            ' - cn.com.unis.saf.action.DefendAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'emeAction                               ' - cn.com.unis.saf.action.EmeAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'nightAction                             ' - cn.com.unis.saf.action.NightAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'checksService                           ' - cn.com.unis.saf.service.impl.ChecksServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'dangerService                           ' - cn.com.unis.saf.service.impl.DangerServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'defendService                           ' - cn.com.unis.saf.service.impl.DefndServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'emeervice                               ' - cn.com.unis.saf.service.impl.EmeServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'nightervice                             ' - cn.com.unis.saf.service.impl.NightServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'speAction                               ' - cn.com.unis.spe.action.SpeAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'taskApplyAction                         ' - cn.com.unis.spe.action.TaskApplyAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'speService                              ' - cn.com.unis.spe.service.impl.SpeServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'taskApplyService                        ' - cn.com.unis.spe.service.impl.TaskApplyServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'codesAction                             ' - cn.com.unis.system.action.CodesAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'deptAction                              ' - cn.com.unis.system.action.DeptAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'loginAction                             ' - cn.com.unis.system.action.LoginAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'menuAction                              ' - cn.com.unis.system.action.MenuAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'roleAction                              ' - cn.com.unis.system.action.RoleAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'sortAction                              ' - cn.com.unis.system.action.SortAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'uploadAction                            ' - cn.com.unis.system.action.UploadAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'userAction                              ' - cn.com.unis.system.action.UserAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'systemService                           ' - cn.com.unis.system.service.Impl.SystemServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'fileAction                              ' - cn.com.unis.uflo.action.FileAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'incomDispatchAction                     ' - cn.com.unis.uflo.action.IncomDispatchAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'officialAction                          ' - cn.com.unis.uflo.action.OfficialAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'officialReadAction                      ' - cn.com.unis.uflo.action.OfficialReadAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'officialRecordAction                    ' - cn.com.unis.uflo.action.OfficialRecordAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'processUserAction                       ' - cn.com.unis.uflo.action.ProcessUserAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'signReportAction                        ' - cn.com.unis.uflo.action.SignReportAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'incomDispatchAssignmentHandler          ' - cn.com.unis.uflo.handler.IncomDispatchAssignmentHandler
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'officialAssignmentHandler               ' - cn.com.unis.uflo.handler.OfficialAssignmentHandler
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'signReportAssignmentHandler             ' - cn.com.unis.uflo.handler.SignReportAssignmentHandler
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'customTransInterceptor                  ' - cn.com.unis.uflo.interceptor.CustomTransInterceptor
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'processLogInterceptor                   ' - cn.com.unis.uflo.interceptor.ProcessLogInterceptor
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'pageModule                              ' - cn.com.unis.uflo.module.PageModule
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'ufloModule                              ' - cn.com.unis.uflo.module.UfloModule
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'belongServices                          ' - cn.com.unis.uflo.service.impl.BelongServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'officialService                         ' - cn.com.unis.uflo.service.impl.OfficialServiceImpl
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'ufloEnvironmentProvider                 ' - cn.com.unis.uflo.utils.UfloEnvironmentProvider
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'unityAction                             ' - cn.com.unis.unity.action.UnityAction
2018-11-26 13:56:02  INFO [AnnotationIocLoader] -    > add 'unityService                            ' - cn.com.unis.unity.service.impl.UnityServiceImpl
2018-11-26 13:56:02  INFO [NutIoc] - ... NutIoc init complete
2018-11-26 13:56:02  INFO [NutLoading] - Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
2018-11-26 13:56:03  INFO [NutActionChainMaker] - Optional processor class not found, disabled : org.nutz.integration.shiro.NutShiroProcessor
2018-11-26 13:56:03  INFO [NutActionChainMaker] - Optional processor class not found, disabled : org.nutz.plugins.validation.ValidationProcessor
2018-11-26 13:56:03  INFO [NutFilePool] - Init file-pool by: D:/data/log [0]
2018-11-26 13:56:03  INFO [NutFilePool] - file-pool.cursor: 561
2018-11-26 13:56:03  INFO [NutFilePool] - Init file-pool by: /upload_tmp [50]
2018-11-26 13:56:03  INFO [NutFilePool] - file-pool.cursor: 1
2018-11-26 13:56:03  WARN [UrlMappingImpl] - Duplicate @At mapping ? path=/exp/xls
2018-11-26 13:56:03  INFO [NutLoading] - Found 1088 module methods
2018-11-26 13:56:03  INFO [NutLoading] - Setup application...
2018-11-26 13:56:03  INFO [MLog] - MLog clients using log4j logging.
2018-11-26 13:56:04  INFO [C3P0Registry] - Initializing c3p0-0.9.1.1 [built 15-March-2007 01:32:31; debug? true; trace: 10]
2018-11-26 13:56:04 DEBUG [Jdbcs] - Jdbcs init complete
2018-11-26 13:56:04  INFO [Jdbcs] - Get Connection from DataSource for JdbcExpert, if you lock at here, check your database server and configure
2018-11-26 13:56:04  INFO [AbstractPoolBackedDataSource] - Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 5, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 20000, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 1hgeumg9zlt04s01pne2ey|3440236b, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> dm.jdbc.driver.DmDriver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1hgeumg9zlt04s01pne2ey|3440236b, idleConnectionTestPeriod -> 0, initialPoolSize -> 15, jdbcUrl -> jdbc:dm://192.168.80.131:5236/OILS, lastAcquisitionFailureDefaultUser -> null, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 180, maxIdleTime -> 120, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 30, maxStatements -> 20, maxStatementsPerConnection -> 0, minPoolSize -> 10, numHelperThreads -> 2, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]
2018-11-26 13:56:04 DEBUG [DaoSupport] - select expert : org.nutz.dao.impl.jdbc.dm.DmJdbcExpert
2018-11-26 13:56:04 DEBUG [DaoSupport] - JDBC Driver --> 4.0.7.1.6.48 (Build 2018.03.01)
2018-11-26 13:56:04 DEBUG [DaoSupport] - JDBC Name   --> dm.jdbc.driver.DmDriver
2018-11-26 13:56:04 DEBUG [DaoSupport] - JDBC URL    --> jdbc:dm://192.168.80.131:5236/OILS
2018-11-26 13:56:04 DEBUG [DaoSupport] - Database info --> DM:[DM DBMS - 7.1.5.29]
2018-11-26 13:56:05  INFO [DicsUtil] - ### File 'dics.js' has been loaded
2018-11-26 13:56:05 DEBUG [NutDaoExecutor] - SELECT * FROM SYS_DIC_CODE  WHERE STATUS=? ORDER BY TYPE ASC, SEQNO ASC  
    | 1 |
    |---|
    | 1 |
  For example:> "SELECT * FROM SYS_DIC_CODE  WHERE STATUS=1 ORDER BY TYPE ASC, SEQNO ASC  "
2018-11-26 13:56:05 DEBUG [NutDaoExecutor] - SELECT * FROM INFO_CLIENT 
2018-11-26 13:56:05 DEBUG [NutDaoExecutor] - SELECT * FROM INFO_COMPANY 
2018-11-26 13:56:05 DEBUG [NutDaoExecutor] - SELECT * FROM INFO_CRANE 
2018-11-26 13:56:05 DEBUG [NutDaoExecutor] - SELECT * FROM INFO_DOCK 
2018-11-26 13:56:05 DEBUG [NutDaoExecutor] - SELECT * FROM INFO_OIL 
2018-11-26 13:56:05 DEBUG [NutDaoExecutor] - SELECT * FROM INFO_OIL_AREA 
2018-11-26 13:56:05 DEBUG [NutDaoExecutor] - SELECT * FROM INFO_OIL_TANK 
2018-11-26 13:56:05 DEBUG [NutDaoExecutor] - SELECT * FROM INFO_RAILWAY 
2018-11-26 13:56:05 DEBUG [NutDaoExecutor] - SELECT * FROM INFO_SENDOILTABLE 
2018-11-26 13:56:05 DEBUG [NutDaoExecutor] - SELECT max(CODE) FROM VIEW_C_E_OILCHECK_ADD 
2018-11-26 13:56:05 DEBUG [NutDaoExecutor] - SELECT max(SHEETNO) FROM VIEW_C_E_OILCHECK_EDIT 
2018-11-26 13:56:05 DEBUG [NutDaoExecutor] - SELECT max(OILSPL_CODE) FROM VIEW_C_E_OILCHECK_EDIT 
2018-11-26 13:56:05 DEBUG [NutDaoExecutor] - SELECT max(docNo) FROM VIEW_C_E_BFCAL_EDIT 
2018-11-26 13:56:05 DEBUG [NutDaoExecutor] - SELECT max(docNo) FROM VIEW_C_E_CECAL_EDIT 
2018-11-26 13:56:05 DEBUG [NutDaoExecutor] - SELECT max(SHEETNO) FROM VIEW_C_E_BOATOILCHECK_EDIT 
2018-11-26 13:56:05 DEBUG [NutDaoExecutor] - SELECT max(OILSPL_CODE) FROM VIEW_C_E_BOATOILCHECK_EDIT 
2018-11-26 13:56:05 DEBUG [NutDaoExecutor] - SELECT max(DOCNO) FROM M_C_S_STOCKCAL 
2018-11-26 13:56:05 DEBUG [NutDaoExecutor] - SELECT max(DOCNO) FROM M_C_S_STOCKCHECK 
2018-11-26 13:56:05 DEBUG [NutDaoExecutor] - SELECT max(CODE) FROM M_C_O_PLAN 
2018-11-26 13:56:06 DEBUG [NutDaoExecutor] - SELECT max(SHEETNO) FROM M_C_O_OILCHECK 
2018-11-26 13:56:06 DEBUG [NutDaoExecutor] - SELECT max(OILSPL_CODE) FROM M_C_O_OILCHECK 
2018-11-26 13:56:06 DEBUG [NutDaoExecutor] - SELECT max(CODE) FROM M_S_MANIFEST 
2018-11-26 13:56:06 DEBUG [NutDaoExecutor] - SELECT max(CERCODE) FROM M_S_MEA_CERTIFICATE 
2018-11-26 13:56:06 DEBUG [NutDaoExecutor] - SELECT max(OWECODE) FROM M_S_MEA_CERTIFICATE 
2018-11-26 13:56:06 DEBUG [NutDaoExecutor] - SELECT max(DOCNO) FROM M_C_O_TFCAL 
2018-11-26 13:56:06 DEBUG [NutDaoExecutor] - SELECT max(DOCNO) FROM M_C_O_COCAL 
2018-11-26 13:56:06 DEBUG [NutDaoExecutor] - SELECT max(DOCNO) FROM M_C_O_OUTCHECK 
2018-11-26 13:56:06 DEBUG [NutDaoExecutor] - SELECT max(DOCNO) FROM M_P_E_STORENOTICE 
2018-11-26 13:56:06 DEBUG [NutDaoExecutor] - SELECT max(SHEETNO) FROM M_P_E_OILCHECK 
2018-11-26 13:56:06 DEBUG [NutDaoExecutor] - SELECT max(OILSPL_CODE) FROM M_P_E_OILCHECK 
2018-11-26 13:56:06 DEBUG [NutDaoExecutor] - SELECT max(DOCNO) FROM M_P_E_TFCAL 
2018-11-26 13:56:06 DEBUG [NutDaoExecutor] - SELECT max(DOCNO) FROM M_P_E_CECAL 
2018-11-26 13:56:06 DEBUG [NutDaoExecutor] - SELECT max(DOCNO) FROM M_P_O_NOTICE 
2018-11-26 13:56:06 DEBUG [NutDaoExecutor] - SELECT max(SHEETNO) FROM M_P_O_OILCHECK 
2018-11-26 13:56:06 DEBUG [NutDaoExecutor] - SELECT max(OILSPL_CODE) FROM M_P_O_OILCHECK 
2018-11-26 13:56:06 DEBUG [NutDaoExecutor] - SELECT max(DOCNO) FROM M_P_O_TFCAL 
2018-11-26 13:56:06 DEBUG [NutDaoExecutor] - SELECT max(CONTRACTID) FROM PRE_INFO_CONTRACT 
2018-11-26 13:56:06 DEBUG [NutDaoExecutor] - SELECT max(DOCNO) FROM M_P_O_COCAL 
2018-11-26 13:56:06 DEBUG [NutDaoExecutor] - SELECT max(TASKNO) FROM M_C_E_TASK 
2018-11-26 13:56:06 DEBUG [NutDaoExecutor] - SELECT max(TASKNO) FROM M_P_E_TASK 
2018-11-26 13:56:06 DEBUG [NutDaoExecutor] - SELECT max(TASKNO) FROM M_C_O_TASK 
2018-11-26 13:56:06 DEBUG [NutDaoExecutor] - SELECT max(TASKNO) FROM M_P_O_TASK 
2018-11-26 13:56:06 DEBUG [NutDaoExecutor] - SELECT max(CODE) FROM ASSET_COMMON 
2018-11-26 13:56:06 DEBUG [NutDaoExecutor] - SELECT * FROM SYS_ROLE_MENU  ORDER BY RID ASC, MID ASC  
2018-11-26 13:56:06 DEBUG [NutDaoExecutor] - SELECT * FROM SYS_DEPT 
2018-11-26 13:56:06 DEBUG [NutDaoExecutor] - SELECT * FROM VIEW_SYS_USER 
2018-11-26 13:56:08 DEBUG [NutDaoExecutor] - SELECT * FROM SYS_ROLE  WHERE STATUS=?
    | 1 |
    |---|
    | 1 |
  For example:> "SELECT * FROM SYS_ROLE  WHERE STATUS=1"
2018-11-26 13:56:08  INFO [PropsUtil] - D:\develop\eclipseWorkSpace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\oils\WEB-INF\classes\static.properties
2018-11-26 13:56:08 DEBUG [NutDaoExecutor] - SELECT * FROM (SELECT T.*, ROWNUM RN FROM ( SELECT * FROM SYS_DEPT  WHERE DEPT_CODE=?) T WHERE ROWNUM <= 1) WHERE RN > 0 
    |         1 |
    |-----------|
    | 001012002 |
  For example:> "SELECT * FROM (SELECT T.*, ROWNUM RN FROM ( SELECT * FROM SYS_DEPT  WHERE DEPT_CODE='001012002') T WHERE ROWNUM <= 1) WHERE RN > 0 "
2018-11-26 13:56:08 DEBUG [NutDaoExecutor] - SELECT * FROM CMS_FENCE  ORDER BY PCODE ASC, SEQNO ASC  
2018-11-26 13:56:08  INFO [NutLoading] - Nutz.Mvc[nutz] is up in 6597ms
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2018-11-26 13:56:09  INFO [Version] - HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
2018-11-26 13:56:09  INFO [Version] - HHH000412: Hibernate Core {4.0.1.Final}
2018-11-26 13:56:09  INFO [Environment] - HHH000206: hibernate.properties not found
2018-11-26 13:56:09  INFO [Environment] - HHH000021: Bytecode provider name : javassist
2018-11-26 13:56:09  INFO [Dialect] - HHH000400: Using dialect: org.hibernate.dialect.DmDialect
2018-11-26 13:56:09  INFO [LobCreatorBuilder] - HHH000424: Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException
2018-11-26 13:56:09  INFO [TransactionFactoryInitiator] - HHH000399: Using default transaction strategy (direct JDBC transactions)
2018-11-26 13:56:09  INFO [ASTQueryTranslatorFactory] - HHH000397: Using ASTQueryTranslatorFactory
_____  __________________ _______ ______ 
__  / / /___  ____/___  / __  __ \__|__ \
_  / / / __  /_    __  /  _  / / /____/ /
/ /_/ /  _  __/    _  /___/ /_/ / _  __/ 
\____/   /_/       /_____/\____/  /____/ 
.....................................................................................................
.  uFlo, is a Chinese style process engine licensed under the Apache License 2.0,                   .
.  which is opensource, free of charge, easy to use,high-performance, with browser-based-designer.  .
.....................................................................................................

十一月 26, 2018 1:56:10 下午 com.bstek.uflo.heartbeat.InstanceDetection startDaemonJob
信息: Uflo job run mode is single...
十一月 26, 2018 1:56:10 下午 com.bstek.uflo.service.impl.SchedulerServiceImpl resetScheduer
信息: Current uflo job instance scheduler is starting...
Hibernate: select this_.ID_ as ID1_16_0_, this_.CRON_ as CRON2_16_0_, this_.PROCESS_ID_ as PROCESS3_16_0_, this_.REMINDER_HANDLER_BEAN_ as REMINDER4_16_0_, this_.START_DATE_ as START5_16_0_, this_.TASK_ID_ as TASK6_16_0_, this_.TASK_NODE_NAME_ as TASK7_16_0_, this_.REMINDER_TYPE_ as REMINDER8_16_0_ from UFLO_TASK_REMINDER this_
十一月 26, 2018 1:56:10 下午 com.bstek.uflo.service.impl.SchedulerServiceImpl resetScheduer
信息: Uflo scheduler is started successfully...
十一月 26, 2018 1:56:13 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
十一月 26, 2018 1:56:13 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
十一月 26, 2018 1:56:13 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 18424 ms

嗯? 没有请求时的日志?

没有。。。

请求进入了,就是参数没有映射上

日志级别改成debug

是这样吗,还是没有日志

log4j.rootLogger=DEBUG,A1,R
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-d{yyyy-MM-dd HH:mm:ss} %5p [%c{1}] - %m%n

log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=${catalina.home}/logs/cbw.log
log4j.appender.R.Encoding=GBK
log4j.appender.R.Append=true
log4j.appender.R.Threshold=INFO
log4j.appender.R.MaxFileSize=500KB   
log4j.appender.R.MaxBackupIndex=5 
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%-d{yyyy-MM-dd HH:mm:ss} %5p [%c] - %m%n

log4j.logger.org.nutz.dao=DEBUG

问题是这样的,我开始用默认的参数适配器接收postman测试发过来的请求,普通参数可以映射上,文件单独使用apache-fileUpload接收这是可行的。然后接移动端的请求,同样的接口以及参数名都没问题,所有参数都映射不上。后来使用UploadAdaptor接收,普通参数可以接收了,但是文件流被UploadAdaptor使用并关闭了

没日志没得分析的

2018-11-26 14:50:34 DEBUG [UrlMappingImpl] - Found mapping for [POST] path=/mobile/save/nightrecords : MobileAction.pic(MobileAction.java:162)
2018-11-26 14:50:34 DEBUG [NutIoc] - Get 'mobileAction'<class cn.com.unis.mobile.action.MobileAction>
2018-11-26 14:50:34 DEBUG [NutIoc] - 	 >> Load definition name=mobileAction
2018-11-26 14:50:34 DEBUG [ComboIocLoader] - Found IocObject(mobileAction) in AnnotationIocLoader(packages=[cn.com.unis])
2018-11-26 14:50:34 DEBUG [NutIoc] - 	 >> Make...'mobileAction'<class cn.com.unis.mobile.action.MobileAction>
2018-11-26 14:50:34 DEBUG [ScopeContext] - Save object 'mobileAction' to [app] 
2018-11-26 14:50:34 DEBUG [DefaultMirrorFactory] - Load class cn.com.unis.mobile.action.MobileAction without AOP
2018-11-26 14:50:35 DEBUG [NutIoc] - Get 'mobileService'<interface cn.com.unis.mobile.service.MobileService>
2018-11-26 14:50:35 DEBUG [NutIoc] - 	 >> Load definition name=mobileService
2018-11-26 14:50:35 DEBUG [ComboIocLoader] - Found IocObject(mobileService) in AnnotationIocLoader(packages=[cn.com.unis])
2018-11-26 14:50:35 DEBUG [NutIoc] - 	 >> Make...'mobileService'<interface cn.com.unis.mobile.service.MobileService>
2018-11-26 14:50:35 DEBUG [ScopeContext] - Save object 'mobileService' to [app] 
2018-11-26 14:50:35 DEBUG [NutIoc] - Get 'dao'<>
2018-11-26 14:50:35 DEBUG [NutIoc] - Get 'txREAD_COMMITTED'<interface org.nutz.aop.MethodInterceptor>
2018-11-26 14:50:35 DEBUG [NutIoc] - Get 'dao'<>
2018-11-26 14:50:35 DEBUG [UploadAdaptor] - Select Html4 Form upload parser --> /oils/mobile/save/nightrecords
2018-11-26 14:50:35 DEBUG [FastUploading] - FastUpload : /mobile/save/nightrecords
2018-11-26 14:50:35 DEBUG [FastUploading] - info created
2018-11-26 14:50:35 DEBUG [FastUploading] - Params map created - 1 params
2018-11-26 14:50:35 DEBUG [FastUploading] - boundary: 
----------------------------091090194512174602275836
2018-11-26 14:50:35 DEBUG [FastUploading] - skip first boundary
2018-11-26 14:50:35 DEBUG [FastUploading] - Reading...
2018-11-26 14:50:35 DEBUG [FastUploading] - Upload File info: FilePath=[微信截图_20181123144623.png],fieldName=[n.file]
2018-11-26 14:50:35 DEBUG [FastUploading] - Upload Info: name=微信截图_20181123144623.png,content_type=image/png
2018-11-26 14:50:35 DEBUG [FastUploading] - ...Done 69863 bytes readed

这是现在的接收格式

@At("/save/nightrecords")
	@AdaptBy(type = UploadAdaptor.class, args = { "ioc:myUpload" })
	public Object pic(@Param("::n") MobileNights nights, HttpServletRequest req){
		if(nights != null) {
			mobileService.saveNightRecords(nights);
		}
		return LayUtil.success();
	}
public class MobileNights {
	
	private File file;
	
	private List<Nights> nights;

private List<NightRecord> records;
	
	public File getFile() {
		return file;
	}

	public void setFile(File file) {
		this.file = file;
	}

	public List<Nights> getNights() {
		return nights;
	}

	public void setNights(List<Nights> nights) {
		this.nights = nights;
	}

	public List<NightRecord> getRecords() {
		return records;
	}

	public void setRecords(List<NightRecord> records) {
		this.records = records;
	}

}

"n.file" 原来是有前缀,那么加个点应该就好了

@Param("::n.") MobileNights nights

或者, 既然就一个对象, 不需要前缀啦, 表单去掉前缀, 后端也@Param("..")

加了点,还是接收不到。。。

@Param("::n.") MobileNights nights

这个集合参数可以映射进来,就是文件对象映射不上

private List<Nights> nights;
private List<NightRecord> records;

不使用前缀表单试试

那单独取一下文件对象吧...

我是打算单独取来着,但是这个UploadAdaptor把流关闭了。不用UploadAdaptor又接收不到其他参数

@Param("file")TempFile tf 
@Param("n.file")TempFile tf 

取决于你的表单名称

这个参数可以放在对象里作为一个属性来接收吗,因为需要接收很多个包含文件的对象

本应可以, 不晓得为啥你的环境就不行, 晚点我测试一下

public class MobileNights {
	
	@Param("file")TempFile file;
	//private File file;
	
	private List<Nights> nights;
}
2018-11-26 15:28:45 DEBUG [UrlMappingImpl] - Found mapping for [POST] path=/mobile/save/nightrecords : MobileAction.pic(MobileAction.java:162)
2018-11-26 15:28:45 DEBUG [UploadAdaptor] - Select Html4 Form upload parser --> /oils/mobile/save/nightrecords
2018-11-26 15:28:45 DEBUG [FastUploading] - FastUpload : /mobile/save/nightrecords
2018-11-26 15:28:45 DEBUG [FastUploading] - info created
2018-11-26 15:28:45 DEBUG [FastUploading] - Params map created - 1 params
2018-11-26 15:28:45 DEBUG [FastUploading] - boundary: 
----------------------------439045759561905739592467
2018-11-26 15:28:45 DEBUG [FastUploading] - skip first boundary
2018-11-26 15:28:45 DEBUG [FastUploading] - Reading...
2018-11-26 15:28:45 DEBUG [FastUploading] - Upload File info: FilePath=[微信截图_20181123144623.png],fieldName=[n.file]
2018-11-26 15:28:45 DEBUG [FastUploading] - Upload Info: name=微信截图_20181123144623.png,content_type=image/png
2018-11-26 15:28:45 DEBUG [FastUploading] - ...Done 69863 bytes readed
2018-11-26 15:28:45  WARN [FailProcessor] - Error@/mobile/save/nightrecords :
org.nutz.castor.FailToCastObjectException: Fail to cast from <java.lang.String> to <org.nutz.mvc.upload.TempFile> for {org.nutz.mvc.upload.TempFile@5e8e7852}
	at org.nutz.castor.Castors.cast(Castors.java:262)
	at org.nutz.castor.Castors.castTo(Castors.java:316)
	at org.nutz.mapl.impl.convert.ObjConvertImpl.convert(ObjConvertImpl.java:68)
	at org.nutz.mapl.Mapl.maplistToObj(Mapl.java:34)
	at org.nutz.mapl.impl.convert.ObjConvertImpl.injectObj(ObjConvertImpl.java:239)
	at org.nutz.mapl.impl.convert.ObjConvertImpl.inject(ObjConvertImpl.java:90)
	at org.nutz.mapl.impl.convert.ObjConvertImpl.convert(ObjConvertImpl.java:71)
	at org.nutz.mapl.Mapl.maplistToObj(Mapl.java:34)
	at org.nutz.mvc.adaptor.injector.ObjectNavlPairInjector.get(ObjectNavlPairInjector.java:53)
	at org.nutz.mvc.adaptor.AbstractAdaptor.adapt(AbstractAdaptor.java:288)
	at org.nutz.mvc.upload.UploadAdaptor.adapt(UploadAdaptor.java:117)
	at org.nutz.mvc.impl.processor.AdaptorProcessor.process(AdaptorProcessor.java:25)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.ActionFiltersProcessor.process(ActionFiltersProcessor.java:58)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:123)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
	at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
	at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15)
	at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44)
	at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67)
	at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
	at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: org.nutz.lang.born.BorningException: Fail to born or cast to 'org.nutz.mvc.upload.TempFile'
 by args: [@(org.nutz.mvc.upload.TempFile@5e8e7852)]
 because: No suitable Constructor or Factory Method!!
	at org.nutz.lang.Mirror.born(Mirror.java:1008)
	at org.nutz.castor.castor.String2Object.cast(String2Object.java:16)
	at org.nutz.castor.castor.String2Object.cast(String2Object.java:9)
	at org.nutz.castor.Castors.cast(Castors.java:252)
	... 39 more

翻了翻源码, 原因在于org.nutz.mvc.adaptor.extractor.MapParamExtractor.extractor(String) 把TempFile转字符串了

好吧。我用Map接收所有的文件然后单独封装已经解决了

-_- 为啥会返回String[]呢... 我先理解一下这段陈年的代码...

添加回复
请先登陆
回到顶部