小编Jag*_*adi的帖子

如何在Eclipse中调试Apache Storm?

我们可以使用特定参数生成风暴罐.但是,如果我们需要在本地以及远程调试此项目(实际上是远程)?

如果它是简单的jar,我们可以调试.但是,这里我们使用以下命令部署jar: storm jar project.jar main_class_name

不确定我们如何部署风暴拓扑,以便我们可以在调试模式下进行风暴项目?

请查找更新的yaml文件,如下所示:

 

    # Licensed to the Apache Software Foundation (ASF) under one
    # or more contributor license agreements.  See the NOTICE file
    # distributed with this work for additional information
    # regarding copyright ownership.  The ASF licenses this file
    # to you under the Apache License, Version 2.0 (the
    # "License"); you may not use this file except in compliance
    # with the License.  You may obtain a copy of the License at
    # …
Run Code Online (Sandbox Code Playgroud)

debugging remote-debugging apache-storm

8
推荐指数
2
解决办法
4032
查看次数

JsonIgnoreProperties 不适用于 spring boot

目前,Spring Boot示例应用创建正常。在请求中,如果有任何未知字段到来,那么我们需要抛出错误。

为此,@JsonIgnoreProperties(ignoreUnknown = false)正在使用注释。但是,当我访问该 URL 时,它不起作用。

请查找代码片段如下:

    @RestController @RequestMapping(value = "/")
    @JsonIgnoreProperties(ignoreUnknown = false) public class
    UserController {
        private final Logger LOG = LoggerFactory.getLogger(getClass());

        private final UserRepository userRepository;

        private final UserDAL userDAL;

        public UserController(UserRepository userRepository, UserDAL userDAL){
            this.userRepository = userRepository;       
            this.userDAL = userDAL;     
        }

        @RequestMapping(
            value = "/create", method = RequestMethod.POST,
            consumes = MediaType.APPLICATION_JSON_VALUE, 
            produces = MediaType.APPLICATION_JSON_VALUE
        )   
        public User addNewUsers(@RequestBody @Valid User user) 
            throws JsonProcessingException {        


            LOG.info("Saving user.");

            CardInfo cardInfo = new CardInfo();
            cardInfo.setCardId("12345678901");      
            user.setCardInfo(cardInfo);
            ObjectMapper …
Run Code Online (Sandbox Code Playgroud)

jackson spring-boot

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