小编Ask*_*ker的帖子

架构'SA'不存在并且丢弃表

我正在使用Spring Boot创建课程和主题数据库.一旦我对课程课程进行了更改,我就遇到了一堆错误.我不确定是什么问题.以下是错误消息:

 ERROR 1136 --- [           main] org.hibernate.tool.hbm2ddl.SchemaExport  : HHH000389: Unsuccessful: alter table course drop constraint FKokaxyfpv8p583w8yspapfb2ar

    ERROR 1136 --- [           main] org.hibernate.tool.hbm2ddl.SchemaExport  : Schema 'SA' does not exist

    ERROR 1136 --- [           main] org.hibernate.tool.hbm2ddl.SchemaExport  : HHH000389: Unsuccessful: drop table course

    ERROR 1136 --- [           main] org.hibernate.tool.hbm2ddl.SchemaExport  : Schema 'SA' does not exist

    ERROR 1136 --- [           main] org.hibernate.tool.hbm2ddl.SchemaExport  : HHH000389: Unsuccessful: drop table topic

    ERROR 1136 --- [           main] org.hibernate.tool.hbm2ddl.SchemaExport  : Schema 'SA' does not exist

    WARN 1136 --- …
Run Code Online (Sandbox Code Playgroud)

java spring spring-data spring-boot

11
推荐指数
2
解决办法
6775
查看次数

如何在 Python 中读取 gzipped parquet 文件

我需要打开一个 gzip 压缩文件,其中有一个包含一些数据的镶木地板文件。我在尝试打印/读取文件内的内容时遇到很多麻烦。我尝试了以下方法:

with gzip.open("myFile.parquet.gzip", "rb") as f:
    data = f.read()
Run Code Online (Sandbox Code Playgroud)

这似乎不起作用,因为我收到一个错误,表明我的文件 ID 不是 gz 文件。谢谢!

python gzip hadoop parquet

9
推荐指数
1
解决办法
2万
查看次数

Spring Boot - DataSource运行时错误

我一直坚持在Eclipse中使用Maven和SpringBoot实现MySQL.我试图运行应用程序,但它一直显示我的错误.

 2017-07-28 11:49:06.767  INFO 5296 --- [           main] io.msela.EmployeeApiDataApplication      : Starting EmployeeApiDataApplication on CTSE-MSELA with PID 5296 (C:\Users\msela\Documents\workspace-sts-3.9.0.RELEASE\mySpringDataEmployeeProject\target\classes started by msela in C:\Users\msela\Documents\workspace-sts-3.9.0.RELEASE\mySpringDataEmployeeProject)
2017-07-28 11:49:06.767  INFO 5296 --- [           main] io.msela.EmployeeApiDataApplication      : No active profile set, falling back to default profiles: default
2017-07-28 11:49:06.830  INFO 5296 --- [           main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@4718df: startup date [Fri Jul 28 11:49:06 CEST 2017]; root of context hierarchy
2017-07-28 11:49:07.970  INFO 5296 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http) …
Run Code Online (Sandbox Code Playgroud)

java mysql eclipse maven spring-boot

3
推荐指数
1
解决办法
1433
查看次数

在 SpringBoot 中找不到 EntityManagerFactory

我正在尝试使用 MySQL 和 SpringBoot 为员工创建登录名。我使用内存数据库使我的代码工作,但是一旦我将代码切换到 MySQL,它就停止工作。这个项目是一个科学怪人,所以我不确定我的一些组件是否可以一起工作。我不确定是否需要我的 App 类中的所有注释...错误如下:

描述:

Field employeeRepository in io.msela.springbootstarter.employee.EmployeeService 
required a bean named 'entityManagerFactory' that could not be found.
Run Code Online (Sandbox Code Playgroud)

行动:

考虑定义一个'entityManagerFactory'在您的配置中命名的 bean 。

这是我的App课程,它运行整个过程:

package io.msela;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

import io.msela.springbootstarter.employee.EmployeeRepository;

@SpringBootApplication
@EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class}) //added for MySQL
@ComponentScan({"io.msela"})
@EntityScan("io.msela.springbootstarter")
@EnableJpaRepositories(basePackageClasses = EmployeeRepository.class)
public class EmployeeApiDataApplication {

    public static void main(String[] args) {
        SpringApplication.run(EmployeeApiDataApplication.class, args);
    }
}
Run Code Online (Sandbox Code Playgroud)

这是 …

java mysql spring-boot

0
推荐指数
1
解决办法
2万
查看次数

标签 统计

java ×3

spring-boot ×3

mysql ×2

eclipse ×1

gzip ×1

hadoop ×1

maven ×1

parquet ×1

python ×1

spring ×1

spring-data ×1