摘要: pom.xml org.springframework.boot spring-boot-starter-jdbc App类package com.smartmap.sample.ch1;import org.springframework.boot.SpringApplication;import org.springframework.... 阅读全文
posted @ 2018-04-23 19:39 ParamousGIS 阅读(137) 评论(0) 推荐(0) 编辑
摘要: package com.sample.smartmap.controller;import java.util.List;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.http.MediaType;import org.springframework.stereoty... 阅读全文
posted @ 2018-04-23 19:12 ParamousGIS 阅读(182) 评论(0) 推荐(0) 编辑
摘要: package com.sample.smartmap.controller;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.http.MediaType;import org.springframework.stereotype.Controller;import o... 阅读全文
posted @ 2018-04-23 19:04 ParamousGIS 阅读(172) 评论(0) 推荐(0) 编辑
摘要: package com.sample.smartmap.controller;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.stereotype.Controller;import org.springframework.ui.Model;import org.spr... 阅读全文
posted @ 2018-04-23 19:02 ParamousGIS 阅读(299) 评论(0) 推荐(0) 编辑
摘要: package com.sample.smartmap.controller;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.Get... 阅读全文
posted @ 2018-04-23 18:56 ParamousGIS 阅读(325) 评论(0) 推荐(0) 编辑
摘要: package com.sample.smartmap.controller;import java.io.IOException;import java.math.BigDecimal;import java.util.Date;import java.util.HashMap;import java.util.Map;import org.apache.commons.logging.Log;... 阅读全文
posted @ 2018-04-23 18:50 ParamousGIS 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 方法1@Value("${test.msg}") private String msg;方法2@Autowired private Environment env;String value = env.getProperty("test.msg");方法3@RequestMapping(path="/${query.all}.json", method=RequestMethod.GE... 阅读全文
posted @ 2018-04-23 18:42 ParamousGIS 阅读(143) 评论(0) 推荐(0) 编辑
摘要: Spring Boot建议使用这些模板引擎,避免使用JSP,若一定要使用JSP将无法实现Spring Boot的多种特性pom.xml org.springframework.boot spring-boot-starter-thymeleaf application.propertiesspring.thymeleaf.cache=tru... 阅读全文
posted @ 2018-04-23 18:38 ParamousGIS 阅读(514) 评论(0) 推荐(0) 编辑
摘要: package com.smartmap.sample.ch1.controller.view;import org.springframework.stereotype.Controller;import org.springframework.ui.Model;import org.springframework.util.StringUtils;import org.springframew... 阅读全文
posted @ 2018-04-23 18:24 ParamousGIS 阅读(198) 评论(0) 推荐(0) 编辑
摘要: package com.smartmap.sample.ch1.controller.view;import java.io.File;import java.io.IOException;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.core.env.Environ... 阅读全文
posted @ 2018-04-23 18:22 ParamousGIS 阅读(179) 评论(0) 推荐(0) 编辑
摘要: package com.smartmap.sample.ch1.controller.rest;import java.util.List;import org.apache.commons.logging.Log;import org.apache.commons.logging.LogFactory;import org.springframework.beans.factory.annota... 阅读全文
posted @ 2018-04-23 18:19 ParamousGIS 阅读(196) 评论(0) 推荐(0) 编辑
摘要: package com.smartmap.sample.ch1.conf;import java.util.List;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import org.springframework.context.annotation.Conf... 阅读全文
posted @ 2018-04-23 18:18 ParamousGIS 阅读(518) 评论(0) 推荐(0) 编辑
摘要: package com.smartmap.sample.ch1.controller.view;import java.io.IOException;import java.util.Collections;import java.util.HashMap;import java.util.List;import java.util.Map;import javax.servlet.Servlet... 阅读全文
posted @ 2018-04-23 18:16 ParamousGIS 阅读(405) 评论(0) 推荐(0) 编辑