Easter79 Easter79
3年前
springBoot整合BeetlSQL
springBoot整合BeetlSQL文章摘要:本文主要介绍springBoot整合BeetlSQL,以及BeetlSQL自定义sql使用。注:本例中,数据库将使用mysql,数据源使用阿里数据源,数据库持久化采用BeetlSQL,由于个人原因暂时未加事务处理。源码地址:https://git
Wesley13 Wesley13
3年前
mysql DISTINCT根据某字段去重同时查出其他字段
mysql有个关键字distinct用来去重的,但是使用时只能放在查询字段的最前边,如:SELECTDISTINCTuser\_id,ageFROMt\_user;若不是放在最前边,如:SELECTuser\_id,DISTINCTageFROMt\_user;是会报错的。那么如果我们只想根据age字段来去重,并且要查出user\_id
Easter79 Easter79
3年前
TiDB Pre
8月30日,TiDB发布PreGA版。该版本对MySQL兼容性、SQL优化器、系统稳定性、性能做了大量的工作。TiDB:SQL查询优化器调整代价模型优化索引选择,支持不同类型字段比较的索引选择支持基于贪心算法的JoinReorder
Stella981 Stella981
3年前
SpringBoot缓存相关问题
框架注解在写代码时,特别是SpringMVC框架下的代码,在dao层,service层,controller层,开始写代码时,一定要先在类上加@注解(https://my.oschina.net/u/3022537),切记不能再犯这个小错误.MyBatis与MySQL版本在使用MyBa
Easter79 Easter79
3年前
SpringBoot静态资源文件
1、默认静态资源映射SpringBoot对静态资源映射提供了默认配置SpringBoot默认将/\\所有访问映射到一下目录classpath:/staticclasspath:/publicclasspath:/resourcesclasspath:/METAINF/resources
Stella981 Stella981
3年前
Flume 测试 Kafka 案例
FlumeKafka测试案例,Flume的配置。a1.sourcess1a1.channelsc1a1.sinksk1a1.sources.s1.typenetcata1.sources.s1.bindmastera1.sources.s1.port
Stella981 Stella981
3年前
SpringBoot静态资源文件
1、默认静态资源映射SpringBoot对静态资源映射提供了默认配置SpringBoot默认将/\\所有访问映射到一下目录classpath:/staticclasspath:/publicclasspath:/resourcesclasspath:/METAINF/resources
Stella981 Stella981
3年前
Git基本用法(上)
1.Git配置gitconfigglobaluser.name"qwop"gitconfigglobaluser.email"qwop@live.cn"cat~/.gitconfig2\.获得一个仓库gitclonehttp://git.shiyanlou.com/shiyanlou/gitproject
Wesley13 Wesley13
3年前
ubuntu14.10server搭建git服务器成功记录
安装配置git1.安装git和openssh。在当前用户下执行如下命令安装git和openssh:sudoaptgetinstallgitcoreopensshserveropensshclientgitcore是git版本控制核心软件安装opensshserve
Stella981 Stella981
3年前
MVC框架Wheel简单实例
这个教程,主要就是介绍如何使用MVC框架Wheel.简单的描述下我们想要做的事情,创建一个user表,然后通过不同的视图方式显示出user表的内容。我们采用Mysql数据库.数据库DROPTABLEIFEXISTSuser_;CREATETABLEuser_(idint(11)NO