mybatis报错 : Caused by: java.lang.IllegalStateException: Can not find owner from table.
示例: select * from ( select id from test ) as a GROUP BY a.id Caused by: java.lang.IllegalStateException: Can not find owner from table. 上面这段代码在navicat内可以正常运行,通过mybatis运行就会抛出(Caused by: java.lang.IllegalStateException: Can not find owner from table.)的异常。。。 后来我把 a.id 改成 id 后mybatis也可以正常运行了 改后的代码如下 select * from ( select id from test ) as a GROUP BY id ———————————————— 版权声明:本文为CSDN博主「墨语wcy」的原创文章,遵循C...
springsecurity跨域
@Log4j2 @Configuration public class WebConfig extends WebMvcConfigurationSupport { /** * 解决跨域请求 * * @param registry */ @Override public void addCorsMappings(CorsRegistry registry) { // 设置允许跨域的路由 registry.addMapping("/**") // 设置允许跨域 请求的域名 .allowedOriginPatterns("*") .allowedHeaders("*") // 允许任何请求头 // 是否允许证书(cookies) ...
Flex 如何让最后一项右边对齐?(CSS)
Flex 中使用 justify-content, 规定项目之间的对其方法,如果要让最后一项向右边对齐,如下图: 有一个简单的方法,在最后一项元素使用样式: margin-left: auto; 原文来自stackoverflow
MySQL-InnoDB存储引擎
这个是之前在公司内部做的一个关于MySQL的分享,主要参考了《MySQL技术内幕-InnoDB存储引擎》书籍和极客时间林晓斌的《MySQL实战45讲》课程,然后从中提取了最核心的内容,相信会给需要学习MySQL的同学一些帮助和指导。
Yorg.io
N4KABGBEBOCGB2ATA9gW0gLjAJgBwE59sAWAdlN22wAYAacKANwFNoBnAS2XkzAEZqfbPQiQARswAusXgDNYAGzbMRURLACevXMVWR1GgMrMAxt0RteAZmoA6AKwA2XFft8rj4vacE9baZKWWKAQogDmzKhBYE5C9vh0DKIADsgc8IG8fKSqomwA1hwKSrwA2kmh4rDKkLmVJgjw3AAisKiwEQD61LUVog3wTfCt7V18vaGVsNDQyADuIx3M3ROTUAocYQAWkvDpYYtdPXWic4oKABLMipJbKydQW9cKt-d9UKjprGyGyczMiDeayg8hMkmQ0CMfwBQLW+jaS1hk0gAyGh2W2FWyOmswWCLGWPqjRa+OWVkJohx8wAYhxoMwAEqwSTLY7vFHE4akzrEClQVEk0bLex8jmDQWIxyigVcoWdUjSznozq4RXi+CdWTXSQAV3pnRQOrECmWiFQYVFG22u32TM...
将数据从mysql迁移到clickhouse
1、关于clickhouse的介绍 https://zhuanlan.zhihu.com/p/370201180 2、京东使用clickhouse存储秒级100G日志数据: https://new.qq.com/omn/20220408/20220408A03TA600.html 3、将MySQL数据迁徙到clickhouse内操作步骤: #clickhouse-client 🙂 create database newDB; 🙂 use newDB; –导入数据: CREATE TABLE Orders ENGINE = MergeTree ORDER BY OrderID AS SELECT * FROM mysql(‘10.42.134.136:3307’, ‘DBNAME’, ‘Orders’, ‘root’, ‘PASSWORD’); Ok. 0 rows in set. Elapsed: 1832.114 sec....
hive3.1.2 on spark
1. 安装java(openjdk8) 2.安装Mysql wget https://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm rpm -ivh mysql57-community-release-el7-8.noarch.rpm cd /etc/yum.repos.d/ rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022 yum -y install mysql-server systemctl start mysqld grep 'temporary password' /var/log/mysqld.log mysql -uroot -p set global validate_password_policy=LOW; set global validate_password_length=4; ALTER USER 'root'@'localhost' ID...
spark版hello word
import org.apache.spark.SparkContext import org.apache.spark.SparkContext._ import org.apache.spark.SparkConf object WordCount { def main(args: Array[String]) { val inputFile = "/Users/artefact/software/spark-3.1.3-bin-hadoop3.2/data/wordcount.txt" val conf = new SparkConf().setAppName("WordCount").setMaster("local") val sc = new SparkContext(conf) val textFile = sc.textFile(inputFile) val wordCount = textFile .flatMap(_.split(" ")) //.flat...
idea 配置 scala 2.12 spark 3.0.2 开发环境
基本开发环境 下载对应包 maven:https://mvnrepository.com/search?q=spark spark:http://spark.apache.org/downloads.html scala:https://www.scala-lang.org/download/2.12.12.html 注意 spark 3 使用的版本是 scala 2.12.* java:https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html 编译器配置 下载scala 插件 工程构建 配置scala 插件 构建scala 本地jar 包工程 file -》 project structure -》 添加下载的spark 中的jar 包 代码: import org.apache.spark.SparkContext ...