小编vij*_*hmi的帖子

AWS SSM放置参数Validation Exception

执行以下命令时出现错误。但是据我所知,语法是正确的。

指令1:

aws ssm put-parameter --name /Finance/Payroll/elixir3131 --value "P@sSwW)rd" --type SecureString
Run Code Online (Sandbox Code Playgroud)

指令2:

aws ssm put-parameter --name "/Finance/Payroll/elixir3131" --value "P@sSwW)rd" --type SecureString
Run Code Online (Sandbox Code Playgroud)

对于我得到的两个命令:

调用PutParameter操作时发生错误(ValidationException):参数名称必须是标准名称。

AWS CLI Version : aws-cli/1.14.16 Python/2.7.9 Windows/7 botocore/1.8.20
Run Code Online (Sandbox Code Playgroud)

amazon-web-services aws-cli ssm

3
推荐指数
3
解决办法
1566
查看次数

在spring + hibernate中保存creationTimestamp和updatedTime

我需要使用 createdDate 和 updatedDate 更新 postgres DB 我尝试使用方法 1,但它插入了空值。当我阅读时,似乎@prepersist 注释不适用于会话。

所以我决定使用方法 2 :Hibernate @CreationTimeStamp Annotation,我添加了 hibernate-annotations maven 依赖项,但是 @CreationTimeStamp 没有解析并给出编译错误。

有人可以建议我如何解决问题吗?

方法 1 使用 @Entity 和 @Table 注释的实体类

      public class Status{
      @Id
    @Column(name = "run_id")
    private int run_id; 

    @Column(name = "status")
    private String status; 

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "created_date" , updatable=false)
    private Date created;

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "updated_date" ,  insertable=false)
    private Date updated;

    @PrePersist
    protected void onCreate() {
        created = new Date();
    }


    @PreUpdate
    protected void onUpdate() {
        updated = new …
Run Code Online (Sandbox Code Playgroud)

spring hibernate javax.persistence

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