06 2020 档案

摘要:基本数据类型 byte 8 -128~127 0short 16 0int 32 0long 64 0char 16 nullboolean 没有明确的大小定义 falsefloat 32 0.0fdouble 64 0.0d 自动装箱 基本类型 自动转为 包装器类型 自动拆箱 包装器类型 自动转为 阅读全文
posted @ 2020-06-15 14:40 下饭 阅读(1091) 评论(0) 推荐(0) 编辑
摘要:1.先确保你的虚拟机可以连通外网,ping www.baidu.com,ping不通就检查你的网络设置 2. sudo apt install openssh-server 3, sudo service ssh start 开启服务 4.ps -aux | grep ssh 出现sshd服务,说明 阅读全文
posted @ 2020-06-08 16:22 下饭 阅读(2805) 评论(0) 推荐(0) 编辑
摘要:1.去官网上下载tomcat安装包 https://tomcat.apache.org/download-80.cgi ,在虚拟机上找个位置,把安装包放那,解压缩就可以了 2.很多教程说现在直接开启tomcat服务就可以了。至少我的报错了。报错: Neither the JAVA_HOME nor 阅读全文
posted @ 2020-06-08 13:59 下饭 阅读(829) 评论(0) 推荐(0) 编辑
摘要:1.去官网上下载linux的jdk http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 我下载的版本:jdk-8u251-linux-x64.tar.gz 注意踩雷:下载之后查看一下属 阅读全文
posted @ 2020-06-07 23:55 下饭 阅读(1765) 评论(0) 推荐(0) 编辑
摘要:1.先看一下这段代码: select car.vin from car_info_temp car join ( select brand from car_info_temp car where car.dealer_code=#{code} group by brand ) car1 on ca 阅读全文
posted @ 2020-06-04 14:26 下饭 阅读(477) 评论(0) 推荐(0) 编辑
摘要:select * from car_info_temp car where group by brand会报错 有个博主的解释是表test FROM test Group BY name 你select * 的时候有的列 比如 id ,它里面有多条 ,这是不合法的。 除了单条数据的,多条数据要么删了 阅读全文
posted @ 2020-06-04 13:41 下饭 阅读(210) 评论(0) 推荐(0) 编辑
摘要:#MYSQL 8小时连接超时配置 #验证连接的有效性 spring.datasource.test-while-idle=true #获取连接时候验证,会影响性能 spring.datasource.test-on-borrow=true spring.datasource.validation-q 阅读全文
posted @ 2020-06-01 18:34 下饭 阅读(447) 评论(0) 推荐(0) 编辑
摘要:把下面的配置加到impala连接中: spring.datasource.impala.initialSize=10spring.datasource.impala.maxActive=100spring.datasource.impala.maxWait=60000spring.datasourc 阅读全文
posted @ 2020-06-01 15:29 下饭 阅读(1144) 评论(0) 推荐(0) 编辑
摘要:在mybatis中配置;mybatis.configuration.map-underscore-to-camel-case=true 发现项目为了做多数据源,将生成 org.apache.ibatis.session.SqlSessionFactory 的配置抽出到使用@Configuration 阅读全文
posted @ 2020-06-01 15:04 下饭 阅读(229) 评论(0) 推荐(0) 编辑