我将项目迁移到spring-boot_1.4.2。它内置了tomcat_8.5.6版本。从命令行启动应用程序时,我收到jaxb-api依赖性错误。
unit UnitTest1;
interface
type
THashTable = class
procedure AddString( const pName : string; pValue : string ); virtual; abstract; // dummy for illustration only
procedure AddInt( const pName : string; const pInt : integer ); virtual; abstract; // dummy for illustration only
end;
TMyClass = class
private
FHashTable : THashTable;
public
procedure TestString;
procedure TestInt;
procedure SetParam( const pName : string; const pValue : string ); overload;
procedure SetParam( const pName : string; const pValue : integer ); overload;
end;
implementation
{ TMyClass }
procedure TMyClass.SetParam(const pName, pValue: string);
begin
FHashTable.AddString( pName, pValue );
end;
procedure TMyClass.SetParam(const pName: string; const pValue: integer);
begin
FHashTable.AddInt( pName, pValue );
end;
procedure TMyClass.TestInt;
begin
SetParam( 'Int', 4 );
end;
procedure TMyClass.TestString;
begin
SetParam( 'Int', 'Fred' );
end;
end.
答案 0 :(得分:0)
该异常通常意味着从Maven存储库下载的文件已损坏。最简单的方法是从本地存储库中删除该文件,因为下次构建项目时它将再次下载。