代码测试

2026年10月23日•1 分钟阅读•Site Administrator

代码块测试

Ts

Ts

public AuthService(
        UserRepository userRepository,
        PasswordEncoder passwordEncoder,
        TokenService tokenService,
        AppProperties properties,
        LoginAttemptService loginAttemptService
    )



//简单测试下。

sql

sql
-- 注释
SELECT id, name FROM posts WHERE status = 'PUBLISHED' ORDER BY created_at DESC LIMIT 10;

json

json
{ "name": "blog", "count": 42, "enabled": true }