我将它部署到Weblogic12C后访问示例springBoot应用程序时遇到问题.使用springBoot嵌入式Tomcat服务器可以正常工作.
重现步骤:按照以下步骤获取springBoot"入门"应用程序代码:https://spring.io/guides/gs/spring-boot/
此时,您可以通过运行gradle"bootRun"任务来验证一切正常,这些任务在嵌入式Tomcat服务器中启动应用程序.一旦tomcat启动,浏览到localhost:8080 /并看到你得到"来自Spring Boot的问候!"
java版"1.7.0_45"Java(TM)SE运行时环境(版本1.7.0_45-b18)Java HotSpot(TM)服务器VM(版本24.45-b08,混合模式)
此时,您将看到应用程序部署正常: - 再次单击"部署",看到您的"完整"springBoot应用程序已列出并且活动 - 单击"完成"并在此页面上注意:"上下文根:/完成".注意:WebLogic文档说,如果有在weblogic.xml中没有定义上下文根,那么它使用war文件名(减去的.war)
如果您尝试访问localhost:7001 /完成的springBoot应用程序,则会获得403!
Error 403--Forbidden
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.4.4 403 Forbidden
The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated. If the request …Run Code Online (Sandbox Code Playgroud) 我正在对自动扩展 AWS ECS Fargate 堆栈进行负载测试,其中包括:
这一切都很好。警报确实被触发,并且我看到正在发生横向扩展操作。但检测“阈值突破”的速度感觉很慢。这是我的负载测试和 AWS 事件的时间安排(从 JMeter 日志和 AWS 控制台的不同位置整理而来):
10:44:32 start load test (this is the first request timestamp entry in JMeter logs)
10:44:36 4 seconds later (in the the JMeter logs), we see that the load test reaches it's 1000th request to the ALB. At this point in time, we're above the threshold and waiting for …Run Code Online (Sandbox Code Playgroud) amazon-web-services amazon-ecs autoscaling aws-fargate aws-auto-scaling
我在尝试将 java 库 (jar) 发布到 AWS CodeArtifact Maven 存储库时遇到问题。当我尝试发布它时,我收到 HTTP 状态代码 401(未经授权)。这表明我做错了什么,比如缺少 CODEARTIFACT_AUTH_TOKEN 环境变量,或者使用了错误的 aws 凭证/配置文件等。但是 AWS CodeArtifact 非常简单:我们只需要:
...超级简单。然而,当我尝试使用我的设置“mvn部署文件”时,我收到 401 Unauthorized...请参阅下面的完整设置:
我通过 Cloudformation 模板设置了一个 AWS CodeArtifact 域和 Maven 存储库(如果需要,请忽略 NPM 和上游存储库):
AWSTemplateFormatVersion: "2010-09-09"
Description: CodeArtifact Domain, Maven repo, NPM repo, and upsteam repos
Resources:
CodeArtifactDomain:
Type: AWS::CodeArtifact::Domain
Properties:
DomainName: mydomain
PermissionsPolicyDocument:
Version: 2012-10-17
Statement:
- Action:
- codeartifact:CreateRepository
- …Run Code Online (Sandbox Code Playgroud) amazon-web-services maven http-status-code-401 mvn-repo aws-codeartifact
我的组织使用“GitHub Enterprise Server 3.0.1”(以防产生任何影响)。
我在项目中创建了一个 .github/workflows/scala.yml 文件。Github Action 可以正常触发,但会因以下错误而终止:
“未找到与指定标签匹配的运行程序:ubuntu-latest。”
我尝试将其更改为 ubuntu-20.04,现在我得到:
“未找到与指定标签匹配的运行程序:ubuntu-20.04。”
无论我手动触发操作还是签入/推送更改到我的开发分支,都会得到相同的结果:操作会触发但因上述错误而失败(并且我收到来自 GitHub 的电子邮件,告诉我构建作业失败)。我感觉这可能是 YAML 解析问题。我确认“ubuntu-latest”字符串/行之后没有空格,也没有奇怪/不可见的字符(我在十六进制编辑器中检查过)。有任何想法吗?
这是我的 scala.yml:
name: Scala CI
on:
workflow_dispatch:
push:
branches:
- Development
pull_request:
branches:
- Development
jobs:
build-job:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Run tests
run: sbt test
Run Code Online (Sandbox Code Playgroud) amazon-ecs ×1
autoscaling ×1
aws-fargate ×1
github ×1
java ×1
maven ×1
mvn-repo ×1
spring ×1
spring-boot ×1
weblogic12c ×1