非常开放的问题,我需要编写一个 java 客户端,从 Oracle 数据库中读取数百万条记录(比如说帐户信息)。将其转储为 XML 并通过网络服务将其发送给供应商。
执行此操作的最优化方法是什么?从获取数百万条记录开始。我去了 JPA/hibernate 路线,我在获取 200 万条记录时遇到了 outofMemory 错误。
JDBC 是更好的方法吗?获取每一行并随时构建 XML?还有其他选择吗?
我不是 Java 专家,因此不胜感激任何指导。
我有要部署到 AWS Lambda 的 .Net Core2.1 代码。我不想使用 Visual Studio 将我的代码发布到 Lambda 我想使用 .net core cli 发布它。我运行命令
dotnet 发布 /p:GenerateRuntimeConfigurationFiles=true
我压缩了我的部署并将其加载到 Lambda AWS 控制台中。但是当我运行 lambda 时,我收到以下错误:
{
"errorType": "LambdaException",
"errorMessage": "Could not find the required 'RSSFeedStartService.deps.json'. This file should be present at the root of the deployment package."
}
Run Code Online (Sandbox Code Playgroud)
我可以看到它RSSFeedStartService.deps.json在部署包中。它是我压缩部署的一部分 为什么它一直抱怨它不存在?
我已按照https://developer.okta.com/quickstart/#/okta-sign-in-page/dotnet/aspnetcore中的确切步骤进行操作
这是我的 Startup.cs 中的内容
services.AddAuthentication(options =>
{
options.DefaultAuthenticateScheme = CookieAuthenticationDefaults.AuthenticationScheme;
options.DefaultSignInScheme = CookieAuthenticationDefaults.AuthenticationScheme;
options.DefaultChallengeScheme = OktaDefaults.MvcAuthenticationScheme;
})
.AddCookie()
.AddOktaMvc(new OktaMvcOptions
{
OktaDomain = "https://domain.oktapreview.com",
ClientId = "xxxxxxxxxxxxxxxxxxx",
ClientSecret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
});
Run Code Online (Sandbox Code Playgroud)
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
app.UseAuthentication();
app.UseMvc();
}
Run Code Online (Sandbox Code Playgroud)
我已经使用 OpenID Connect强文本在 OKTA 中创建了该应用程序。当我启动应用程序时出现以下错误
System.InvalidOperationException: IDX20803: Unable to obtain configuration from: '[PII is hidden]'.
Run Code Online (Sandbox Code Playgroud)
当我 ping https://domain.okta.com/oauth2/defau/v1/keys时 出现以下错误
{"errorCode":"E0000006","errorSummary":"You do not have permission to perform the requested action","errorLink":"E0000006","errorId":"oaeX0BPGXjlQ4qE1emo_gDk4w","errorCauses":[]}
Run Code Online (Sandbox Code Playgroud)
我不知道如何使用 OKTA 进行身份验证 OKTA 如何知道哪个用户正在尝试进行身份验证?