会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Blogs_zcc
博客园
首页
新随笔
联系
订阅
管理
2020年2月13日
对浏览器提供数据导出后台
摘要: // 输出Excel文件try { OutputStream output = response.getOutputStream(); response.reset(); // 设置分区中文名 String filename = "商品价格预警"; // 设置响应的编码 response.setCo
阅读全文
posted @ 2020-02-13 11:16 Blogs_zcc
阅读(178)
评论(0)
推荐(0)
2019年12月11日
springboot集成mybatis 集成配置
摘要: server: port: 8001mybatis: config-location: classpath:mybatis/mybatis.cfg.xml type-aliases-package: com.enxic.enxicapi.entity mapper-locations: - clas
阅读全文
posted @ 2019-12-11 14:27 Blogs_zcc
阅读(230)
评论(0)
推荐(0)
2019年11月28日
sql in 长度限制
摘要: sql in 长度超过1000 会出错, 可以选择这种写法 select * from table id in ('1','2') or id in('3','4')
阅读全文
posted @ 2019-11-28 12:10 Blogs_zcc
阅读(2846)
评论(0)
推荐(0)
mysql 主从配置
摘要: mysql主从配置用于读写分离 1.新建两个数据库,使用 mysql数据库 use mysql 2.在主数据库建立一个账号 myslave,用于同步数据, 3.账号授予同步数据权限 grant replication slave on *.* to 'myslave'@'主库主机地址(127.0.0
阅读全文
posted @ 2019-11-28 09:23 Blogs_zcc
阅读(74)
评论(0)
推荐(0)
2019年11月26日
SpringAop @Around环绕通知的 匹配自定义注解
摘要: @Aspectpublic class AopTest { @Around(value = "@annotation(MyAnnotation)") public void testAnnotion(ProceedingJoinPoint joinPoint){ try { ThreadLocal<
阅读全文
posted @ 2019-11-26 11:05 Blogs_zcc
阅读(3605)
评论(0)
推荐(0)
公告