| | |
| | | package com.lf.server.config; |
| | | |
| | | import com.lf.server.helper.*; |
| | | import com.lf.server.service.all.TestService; |
| | | import com.lf.server.service.all.UploadAttachService; |
| | | import com.lf.server.service.sys.ArgsService; |
| | | import org.apache.commons.logging.Log; |
| | |
| | | @Autowired |
| | | Environment env; |
| | | |
| | | //@Autowired |
| | | //TestService testService; |
| | | |
| | | @Override |
| | | public void run(ApplicationArguments args) { |
| | | // noinspection AlibabaRemoveCommentedCode |
| | |
| | | GdalHelper.init(env.getProperty("sys.gdal_path")); |
| | | UploadAttachService.init(env.getProperty("sys.attachTabs")); |
| | | |
| | | //testService.testRegister(); |
| | | pathHelper.init(); |
| | | argsService.initSettingData(); |
| | | |
| | |
| | | import com.lf.server.entity.md.MdzxcgEntity; |
| | | import com.lf.server.helper.*; |
| | | import com.lf.server.mapper.bd.DlgagnpMapper; |
| | | import com.lf.server.service.data.FmeService; |
| | | import com.lf.server.service.data.MetaService; |
| | | import com.lf.server.service.data.UploadService; |
| | | import com.lf.server.service.show.LocateService; |
| | |
| | | @Autowired |
| | | MetaService metaService; |
| | | |
| | | @Autowired |
| | | FmeService fmeService; |
| | | |
| | | private final static Log log = LogFactory.getLog(TestService.class); |
| | | |
| | | public void testRegiste() { |
| | | // |
| | | } |
| | | |
| | | public void testGdal() { |
| | | GdalHelper.readTif("E:\\data\\7.Insar\\insartest.tif"); |
| | |
| | | } |
| | | |
| | | /** |
| | | * 服务注册 |
| | | * 15.服务注册 |
| | | */ |
| | | public String serverRegister(String name, String serverUri, String type, HttpServletRequest req) { |
| | | String url = getUrl("resource/res/item", req); |
| | |
| | | } |
| | | |
| | | /** |
| | | * 服务申请 |
| | | * 16.服务申请 |
| | | */ |
| | | public String serverApply(String id, Integer pubid, HttpServletRequest req) { |
| | | String url = getUrl("resource/res/request", req) + "&resourceid=" + id; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 删除资源 |
| | | * 17.删除资源 |
| | | */ |
| | | public void deleteRes(String id, HttpServletRequest req) { |
| | | String url = getUrl("resource/res/hashid", req) + "&hashid=" + id; |