小编Sen*_*sei的帖子

什么是web.xml文件,我可以用它做什么?

Oracle BEA WebLogic Server 8.1文档中的web.xml部署描述符元素几乎总结了web.xml文件中的每个元素.但我也对以下几点感到好奇:

  1. 是否有任何配置参数应该像瘟疫一样避免?
  2. 任何与性能或内存使用相关的参数?
  3. 常见错误配置导致安全相关风险?

除了元素名称及其用法之外,我还应该了解web.xml?

web.xml web-applications

72
推荐指数
4
解决办法
12万
查看次数

在传递CommaDelimitedList类型的参数值时看到AWS CLI Cloudformation错误

我看到CommaDelimitedList参数值的无效类型错误。CF运行成功,控制台没有任何错误。

AWS CLI命令:

aws cloudformation create-stack --stack-name agkTestUserStack --template-body file://api_user.yaml --parameters ParameterKey=CustomUserName,ParameterValue="svc_TestUser" ParameterKey=GroupAssociations,ParameterValue="Dev,Test"
Run Code Online (Sandbox Code Playgroud)

输出:

Parameter validation failed:
Invalid type for parameter Parameters[1].ParameterValue, value: [u'Dev', u'Test'], type: <type 'list'>, valid types: <type 'basestring'>
Run Code Online (Sandbox Code Playgroud)

AWS CLI版本:aws-cli / 1.15.75 Python / 2.7.9 Windows / 8 botocore / 1.10.74

api_user.yaml:

AWSTemplateFormatVersion: 2010-09-09
Parameters:
  CustomUserName:
    Type: String
    Description: Custom user name
    Default: ''
  GroupAssociations:
    Type: CommaDelimitedList
    Description: Comma-delimited list of groups to associate the user
    Default: ''
Conditions:
  NoGroups: !Equals 
    - !Join
        - ''
        - …
Run Code Online (Sandbox Code Playgroud)

amazon-web-services aws-cloudformation aws-cli

5
推荐指数
1
解决办法
737
查看次数