Share Java classes, Spring Boot handlers, or design patterns: syntax-highlighted and instantly shareable.
1@RestController2@RequestMapping("/api/users")3@RequiredArgsConstructor4public class UserController {56 private final UserService userService;78 @GetMapping("/{id}")9 public ResponseEntity<UserDto> getUser(@PathVariable Long id) {10 return userService.findById(id)11 .map(UserDto::from)12 .map(ResponseEntity::ok)13 .orElse(ResponseEntity.notFound().build());14 }1516 @PostMapping17 @ResponseStatus(HttpStatus.CREATED)18 public UserDto createUser(@Valid @RequestBody CreateUserRequest req) {19 return UserDto.from(userService.create(req));20 }21}Paste Java code and get a shareable link with full syntax highlighting, server-side rendered with no JavaScript overhead.
Deleted on first open. Can't be viewed twice.
Add a password for end-to-end encryption with no raw key stored.
Set pastes to expire after 1 hour, 1 day, 7 days, or up to 30 days. Gone when you say so.
No sign-up, no email, no ads. Paste and share in seconds.
Yes. The Java grammar highlights annotations, generics, and lambda expressions.
Yes: textdrop.sh supports both Java and Kotlin as separate language options.
No line limit. Pastes up to 5 MB are supported.