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

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

Closed
lj-example opened this issue Sep 25, 2020 · 1 comment
Closed
Labels
Milestone

Comments

@lj-example
Copy link

@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));
    }
@lj-example
Copy link
Author

fastjson 版本:1.2.70
springboot 版本:2.1.6.RELEASE

@wenshao wenshao closed this as completed in 789f983 Nov 2, 2020
wenshao added a commit that referenced this issue Nov 2, 2020
@wenshao wenshao added this to the 1.2.75 milestone Nov 5, 2020
@wenshao wenshao added the bug label Nov 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants