[INFO ] 2018-01-08 19:59:29,258 org.nutz.ioc.loader.annotation.AnnotationIocLoader.<init>(AnnotationIocLoader.java:52) - Found 124 classes in 1 base-packages!
beans = ["rtsStatisticsController", "manholeCoverServiceImpl", "sysLoginController", "dateUtil", "sysUserServiceImpl", "sysExamineController", "rtsResultMeasureServiceImpl", "zswresMetadatamodelController", "sysRoleServiceImpl", "qrcodeService", "sysRouteController", "idcardUtil", "realTiSystemController", "rtsModelServiceImpl", "realTiSystemPMapMarkerController", "rtsProflayerContentController", "rtsAlllayerServiceImpl", "sysDataLogServiceImpl", "zswresVectorsymbolController", "rtsMylayerController", "code128Util", "realTiSystemResultPolygonController", "toolsController", "zswresPhotocontrolpointServiceImpl", "rtsProflayerContentServiceImpl", "rtsStatisticsServiceImpl", "realTiSystemManagerController", "rtsLayercategoryServiceImpl", "planeMapController", "rtsResultMarkerServiceImpl", "rtsResultMeasureCategoryController", "featureGridServiceImpl", "zswresVectorsymbolServiceImpl", "zswoprLogFileListController", "rtsProflayerServiceImpl", "sysZswUserController", "zswappPotalsdeveloperServiceImpl", "sysConfigServiceImpl", "delLogsJob", "rtsResultMeasureController", "cookieUtil", "redisIdGenerator", "zswoprMoinitorController", "zswresMetadataController", "rtsPMapMarkerServiceImpl", "sysTaskController", "featureGridController", "sysDictServiceImpl", "zswoprCurrentStatesController", "sysOperateLogServiceImpl", "sysMenuController", "sysLayerController", "rtsResultAnalyseServiceImpl", "sysRoleController", "zswappPotalsdeveloperController", "zswresPhotocontrolpointController", "zswresVectorbasicinfoServiceImpl", "sysUnitController", "rtsResultRoamServiceImpl", "sysDictController", "zswresVectorgeodataController", "rSAUtil", "zswresVectorscatalogController", "rtsMylayerServiceImpl", "doAuthoController", "rtsResultMarkerController", "standardizedGridController", "stringUtil", "saveShpData", "zswresVectorattribute20Controller", "zswresVectorattributemodelController", "sysPluginServiceImpl", "zswoprVisitsController", "stadardizedGridServiceImpl", "sysDownloadLogServiceImpl", "zswresMetadataServiceImpl", "nutShiroMethodInterceptor", "sysUserMenuServiceImpl", "dynamicInterceptor", "sysLogController", "zswoprLogListController", "emailService", "sysRouteServiceImpl", "sysHomeController", "zswresVectorattribute50Controller", "sysMenuServiceImpl", "rtsAttributeServiceImpl", "realTiSystemResultLineController", "zswresVectorbasicinfoController", "zswresDatacatalogServiceImpl", "rtsMylayerContentController", "zswresDatacatalogController", "rtsMylayerContentServiceImpl", "rabbitProducer", "sysTaskServiceImpl", "rtsLayercategoryController", "rtsResultAnalyseController", "sysLogServiceImpl", "demonstrationController", "rtsResultRoamController", "rtsAlllayerController", "shiroUtil", "$aop_syslog", "manholeCoverController", "sysPluginController", "zswresVectorattribute20ServiceImpl", "sysApiServiceImpl", "sLogService", "zswresVectorattribute50ServiceImpl", "sysApiController", "zswresMetadatamodelServiceImpl", "rtsProflayerController", "sysUnitServiceImpl", "rtsSdoServiceImpl", "zswresVectorscatalogServiceImpl", "sysUserController", "platformAuthorizingRealm", "sysConfController", "pluginMaster", "testJob", "zswresVectorgeodataServiceImpl", "zswresVectorattributemodelServiceImpl", "rtsResultMeasureCategoryServiceImpl", "$aop_1_plugin"]
[DEBUG] 2018-01-08 19:59:29,303 org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:110) - found jedis -- org.nutz.integration.jedis.JedisIocLoader
[DEBUG] 2018-01-08 19:59:29,765 org.nutz.resource.Scans.scan(Scans.java:274) - Found 1 resource by src( org/nutz/integration/jedis/jedis.js ) , regex( ^(.+[.])(js|json)$ )
[DEBUG] 2018-01-08 19:59:29,769 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:49) - loading [org/nutz/integration/jedis/jedis.js]
[DEBUG] 2018-01-08 19:59:29,828 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:57) - Loaded 9 bean define from path=[org/nutz/integration/jedis/jedis.js] --> [redisService, jedisCluster, jedisClusterNodes, jedisClusterWrapper, pubSubService, jedisPoolConfig, jedisPool, jedisAgent, redis]
[DEBUG] 2018-01-08 19:59:29,996 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:40) - Loaded 5 bean define from reader --
[txREPEATABLE_READ, txSERIALIZABLE, txNONE, txREAD_UNCOMMITTED, txREAD_COMMITTED]
[DEBUG] 2018-01-08 19:59:30,170 org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:110) - found quartz -- org.nutz.integration.quartz.QuartzIocLoader
[DEBUG] 2018-01-08 19:59:30,307 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:57) - Loaded 0 bean define from path=[] --> []
[DEBUG] 2018-01-08 19:59:31,019 org.nutz.ioc.aop.SimpleAopMaker.<init>(SimpleAopMaker.java:79) - Load AopConfigure for anno=org.nutz.aop.interceptor.async.Async by type=org.nutz.aop.interceptor.async.AsyncAopIocLoader
[DEBUG] 2018-01-08 19:59:31,148 org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:110) - found rabbitmq -- org.nutz.integration.rabbitmq.RabbitmqIocLoader
[DEBUG] 2018-01-08 19:59:31,612 org.nutz.resource.Scans.scan(Scans.java:274) - Found 1 resource by src( org/nutz/integration/rabbitmq/rabbitmq.js ) , regex( ^(.+[.])(js|json)$ )
[DEBUG] 2018-01-08 19:59:31,616 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:49) - loading [org/nutz/integration/rabbitmq/rabbitmq.js]
[DEBUG] 2018-01-08 19:59:31,637 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:57) - Loaded 2 bean define from path=[org/nutz/integration/rabbitmq/rabbitmq.js] --> [rabbitmq, rabbitmq_cf]
[DEBUG] 2018-01-08 19:59:31,720 org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:110) - found wkcache -- org.nutz.plugins.wkcache.WkcacheIocLoader
[DEBUG] 2018-01-08 19:59:32,200 org.nutz.resource.Scans.scan(Scans.java:274) - Found 11 resource by src( org/nutz/plugins/wkcache/ ) , regex( ^.+[.]class$ )
[DEBUG] 2018-01-08 19:59:32,397 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) - Found @IocBean : class org.nutz.plugins.wkcache.WkcacheRemoveEntryInterceptor
[DEBUG] 2018-01-08 19:59:32,445 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) - Found @IocBean : class org.nutz.plugins.wkcache.WkcacheAopConfigure
[DEBUG] 2018-01-08 19:59:32,455 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) - Found @IocBean : class org.nutz.plugins.wkcache.WkcacheResultInterceptor
[DEBUG] 2018-01-08 19:59:32,464 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:76) - Found @IocBean : class org.nutz.plugins.wkcache.WkcacheRemoveAllInterceptor
[INFO ] 2018-01-08 19:59:32,474 org.nutz.ioc.loader.annotation.AnnotationIocLoader.<init>(AnnotationIocLoader.java:52) - Found 4 classes in 1 base-packages!
beans = ["wkcacheRemoveAllInterceptor", "wkcacheResultInterceptor", "$aop_wkcache", "wkcacheRemoveEntryInterceptor"]
[INFO ] 2018-01-08 19:59:32,546 org.nutz.ioc.impl.NutIoc.<init>(NutIoc.java:98) - NutIoc init begin ...
[INFO ] 2018-01-08 19:59:32,614 org.nutz.ioc.impl.NutIoc.<init>(NutIoc.java:115) - ... NutIoc init complete
[INFO ] 2018-01-08 19:59:32,697 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:159) - Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
[DEBUG] 2018-01-08 19:59:32,862 org.beetl.ext.nutz.BeetlViewMaker.init(BeetlViewMaker.java:59) - beetl init ....
[DEBUG] 2018-01-08 19:59:32,915 org.beetl.ext.nutz.BeetlViewMaker.init(BeetlViewMaker.java:64) - found beetl.properties, loading ...
[DEBUG] 2018-01-08 19:59:32,918 org.beetl.ext.nutz.BeetlViewMaker.init(BeetlViewMaker.java:79) - no custom DIRECT_BYTE_OUTPUT found , set to true
[DEBUG] 2018-01-08 19:59:33,679 org.beetl.ext.nutz.BeetlViewMaker.init(BeetlViewMaker.java:92) - beetl init complete
[DEBUG] 2018-01-08 19:59:33,785 org.nutz.mvc.impl.NutLoading.createViewMakers(NutLoading.java:366) - @Views(BeetlViewMaker.class,PdfViewMaker.class,DefaultViewMaker.class)
[DEBUG] 2018-01-08 19:59:34,383 org.nutz.resource.Scans.scan(Scans.java:274) - Found 1 resource by src( config/chain/nutzwk-mvc-chain.json ) , regex( ^(.+[.])(js|json)$ )
[DEBUG] 2018-01-08 19:59:34,587 org.nutz.mvc.impl.chainconfig.JsonActionChainMakerConfiguretion.<init>(JsonActionChainMakerConfiguretion.java:37) - ActionChain Config:
{
"default": {
"ps": ["cn.wizzer.app.web.commons.processor.LogTimeProcessor", "cn.wizzer.app.web.commons.processor.GlobalsSettingProcessor", "org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor", "org.nutz.mvc.impl.processor.EncodingProcessor", "org.nutz.mvc.impl.processor.ModuleProcessor", "cn.wizzer.app.web.commons.processor.NutShiroProcessor", "cn.wizzer.app.web.commons.processor.XssSqlFilterProcessor", "org.nutz.mvc.impl.processor.ActionFiltersProcessor", "org.nutz.mvc.impl.processor.AdaptorProcessor", "org.nutz.mvc.impl.processor.MethodInvokeProcessor", "org.nutz.mvc.impl.processor.ViewProcessor"],
"error": "org.nutz.mvc.impl.processor.FailProcessor"
}
}
[DEBUG] 2018-01-08 19:59:34,593 org.nutz.mvc.impl.NutLoading.createChainMaker(NutLoading.java:263) - @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
[DEBUG] 2018-01-08 19:59:34,674 org.nutz.mvc.impl.Loadings.scanModuleInPackage(Loadings.java:184) - > scan 'cn.wizzer'
}
[DEBUG] 2018-01-08 20:05:46,704 org.nutz.mvc.impl.NutLoading.createChainMaker(NutLoading.java:263) - @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
[DEBUG] 2018-01-08 20:05:46,788 org.nutz.mvc.impl.Loadings.scanModuleInPackage(Loadings.java:184) - > scan 'cn.wizzer'
[DEBUG] 2018-01-08 20:06:15,214 org.nutz.resource.Scans.scan(Scans.java:274) - Found 307 resource by src( cn/wizzer/ ) , regex( ^.+[.]class$ )
实体类没 这样写 @Column
@Comment("ICONURL")
@ColDefine(type = ColType.VARCHAR, width = 255)
private String iconurl;
@At("/save")
@Ok("json")
@SLog(tag = "新建项", msg = "")
@AdaptBy(type=JsonAdaptor.class)
public Object addDo(@Param("titlePopup") String title,@Param("desPopup")String des, @Param("type")String type, @Param("pointsJson")RtsResultMeasurePointBean[] points,HttpServletRequest req) {
try {
//rtsResultMeasureService.insert(rtsResultMeasure);
return Result.success("system.success");
} catch (Exception e) {
return Result.error("system.error");
}
}
加入 @AdaptBy(type=JsonAdaptor.class) 这个的原因,导致项目启动变慢,但是怎么才能接收一个 数组对象呢
function saveDistantsPopup(vectorMeasure)
{
var points = [];
var pointModel ={x:null,y:null};
var titlePopup = $('#titlePopup').val();
var desPopup = $('#desPopup').val();
var type = '2';
for (var i = 1; i<vectorMeasure.features.length-2;i++ )
{
pointModel.x =vectorMeasure.features[i].geometry.x;
pointModel.y =vectorMeasure.features[i].geometry.y;
points.push(pointModel);
}
var pointsJson = JSON.stringify(points);
$.ajax({
type: 'post',
async: true,
data:{"titlePopup":$.trim(titlePopup),
"desPopup":$.trim(desPopup),
"type":type,
"points":pointsJson
},
url: '../platform/RTS/resultMeasure/save',
success: function (data) { //返回json结果
}
})
}
这个 pointsJson 不知道怎么接收
function saveDistantsPopup(vectorMeasure)
{
var points = [];
var pointModel ={x:null,y:null};
var titlePopup = $('#titlePopup').val();
var desPopup = $('#desPopup').val();
var type = '2';
for (var i = 1; i<vectorMeasure.features.length-2;i++ )
{
pointModel.x =vectorMeasure.features[i].geometry.x;
pointModel.y =vectorMeasure.features[i].geometry.y;
points.push(pointModel);
}
var pointsJson = JSON.stringify(points);
$.ajax({
type: 'post',
async: true,
data:{"titlePopup":$.trim(titlePopup),
"desPopup":$.trim(desPopup),
"type":type,
"points":pointsJson
},
url: '../platform/RTS/resultMeasure/save',
success: function (data) { //返回json结果
}
})
}
@AdaptBy(type=WhaleAdaptor.class 这个可以用,速度不变
可以这样接收么 :
public Object addDo(@Param("titlePopup") String title,@Param("desPopup")String des, @Param("type")String type, @Param("pointsJson")RtsResultMeasurePointBean[] points,HttpServletRequest req) {
恩恩,我改下试试
```请问这个control 怎么接收,就这个没接收到了
"[{"x":114.2727688328,"y":22.719458341593},{"x":114.2727688328,"y":22.719458341593},{"x":114.2727688328,"y":22.719458341593}]"
```
@Param("pointsJson")String[] points, 这个必须是String[ ]数组,不然就项目很慢
@SLog(tag = "新建项", msg = "")
@AdaptBy(type=JsonAdaptor.class)
public Object addDo(@Param("titlePopup") String title,@Param("desPopup")String des, @Param("type")String type, @Param("pointsJson")String[] points,HttpServletRequest req) {
try {
//rtsResultMeasureService.insert(rtsResultMeasure);
package cn.wizzer.app.RTS.modules.models.result;
public class RtsResultMeasurePointBean {
private String x;
private String y;
public String getX() {
return x;
}
public void setX(String x) {
this.x = x;
}
public String getY() {
return y;
}
public void setY(String y) {
this.y = y;
}
}