Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants