我尝试在Spring项目的项目中将hibernate从4升级到5 4.2.升级完成后,当我调用更新方法时,我在堆栈跟踪中发现以下错误.
10:53:32,185 ERROR TableStructure:149 - could not read a hi value
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'test.hibernate_sequence' doesn't exist
Run Code Online (Sandbox Code Playgroud)
我用注释更改了自动递增的Id
@GeneratedValue(strategy=GenerationType.AUTO)
Run Code Online (Sandbox Code Playgroud)
仍然是错误.
我已经从 Maven 存储库下载了 poi -3.14 jar,但它有 hssf 的所有包,我需要 xssf 的 xlsx 格式。我应该在哪里下载 xssf jar。
以下是我的代码
use warnings;
use LWP::Simple;
use WWW::Mechanize;
use WWW::Mechanize::Link;
my $mech = new WWW::Mechanize();
my $link = new WWW::Mechanize::Link();
my $file = 'source1.txt';
my $filename = 'links2.txt';
open(my $fh, '>', $filename) or die "Could not open file '$filename' $!";
open my $info, $file or die "Could not open $file: $!";
while( my $line = <$info>) {
$link = grep(/<a.*href=.*>/,$line);
print $fh $link->text;
}
close $fh;
Run Code Online (Sandbox Code Playgroud)
当我尝试运行这个我得到错误无法调用方法"文本"没有包或对象引用.