Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

JSON.toJSON 转换 @Configuration 修饰的对象会出现死循环 #3469

@lj-example

Description

@lj-example
@Data
@NoArgsConstructor
@Configuration
public class TestConfig {

    /**
     * 测试 name
     */
    private String info = "name";

}

   @Autowired
   private TestConfig testConfig;

   @Test
    public void testXMLSelect() throws IOException {
        log.info("testConfig = {}", JSON.toJSON(testConfig));
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions