Java后端
qq_29960043
这个作者很懒,什么都没留下…
展开
-
根据一些条件查询表得到的数据如何写入excel表格。(后端写入.csv临时文件)
在Controller层,定义如下@ApiOperation(value = "条件导出门店表格信息",tags="管理端-活跃门店")@RequestMapping(value = "/exportStoreTableResult", method = RequestMethod.GET)public void exportStoresInfo(HttpServletResponse ...原创 2018-08-28 14:08:51 · 269 阅读 · 0 评论 -
Mybatis当中如何做到标记A表所有数据当中,哪些在B表存在,哪些在B表不存在
select A.*,(case when B.id is null then false else true end) as choosed from A left join B on A.id=B.A_id where ......choosed字段为true,则A.item在B表中存在,choosed字段为false,则在B表中不存在...原创 2018-08-28 14:35:45 · 408 阅读 · 0 评论 -
MyBatis当中模糊查询的一条示例
"<script>select from car where 1=1<if test=\"key!=null and key!=''\"> and car.name like CONCAT('%',#{key},'%')</if></script>"这里注意判断为空和concat的使用,这样可以显著减少代码当中的if判断语句...原创 2018-08-28 14:50:06 · 213 阅读 · 0 评论 -
看 光仔December 关于springboot介绍的的一些体会-----1
一.spring 1.x时代所有配置信息通过xml实现。编写实体类.java文件,实体类注入在xml文件中实现。二.spring 2.x时代@Autowired等注解能够直接找到实体类并注入1、应用的基本配置使用XML,比如:数据源、资源文件等。2、业务开发使用注解,比如:Service中注入bean等。三.spring 3.x时代和spring 4.x时代逐渐淘汰x...原创 2018-08-29 14:14:28 · 170 阅读 · 0 评论 -
关于springboot接口调研的一些记录
才疏学浅,可能大家看不懂见谅建立一个Application.java文件@Component("appContext")@ConfigurationProperties(prefix = "checheyun")public class AppContext { String zhengshi_sid; String zhengshi_pid; String ...原创 2018-09-05 11:43:22 · 283 阅读 · 0 评论