Sure, here's an example of a Spring controller and service that would allow a user to add or remove another user to/from a workspace. This assumes that you have already set up the necessary database configuration and repositories.

WorkspaceController.java:
```less
package com.whatfix.wfl.collab.controller;

import java.util.UUID;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import com.whatfix.wfl.collab.model.User;
import com.whatfix.wfl.collab.model.Workspace;
import com.whatfix.wfl.collab.service.WorkspaceService;

@RestController
public class WorkspaceController {

    @Autowired
    private WorkspaceService workspaceService;

    // Endpoint for creating a new workspace
    @PostMapping("/create_workspace")
    public ResponseEntity<Workspace> createWorkspace(@RequestBody Workspace workspace, User user) {
        UUID adminId = user.getId();
        workspace.setAdminUserId(adminId);
        Workspace newWorkspace = workspaceService.createWorkspace(workspace);
        return new ResponseEntity<>(newWorkspace, HttpStatus.CREATED);
    }

    // Endpoint for deleting a workspace by ID
    @DeleteMapping("/delete_workspace/{id}")
    public ResponseEntity<String> deleteWorkspace(@PathVariable("id") UUID id, User user) {
        workspaceService.deleteWorkspace(id, user.getId());
        return new ResponseEntity<>("Workspace with ID " + id + " deleted successfully", HttpStatus.OK);
    }
    
    // Endpoint for adding a user to a workspace
    @PostMapping("/add_user_to_workspace")
    public ResponseEntity<String> addUserToWorkspace(@PathVariable("workspaceId") UUID workspaceId, @PathVariable("userId") UUID userId, User user) {
        workspaceService.addUserToWorkspace(workspaceId, userId, user.getId());
        return new ResponseEntity<>("User with ID " + userId + " added to workspace with ID " + workspaceId, HttpStatus.OK);
    }
    
    // Endpoint for removing a user from a workspace
    @DeleteMapping("/remove_user_from_workspace/{workspaceId}/{userId}")
    public ResponseEntity<String> removeUserFromWorkspace(@PathVariable("workspaceId") UUID workspaceId, @PathVariable("userId") UUID userId, User user) {
        workspaceService.removeUserFromWorkspace(workspaceId, userId, user.getId());
        return new ResponseEntity<>("User with ID " + userId + " removed from workspace with ID " + workspaceId, HttpStatus.OK);
    }
}
```
WorkspaceService.java:
```java
package com.whatfix.wfl.collab.service;

import java.util.UUID;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whatfix.wfl.collab.exception.ResourceNotFoundException;
import com.whatfix.wfl.collab.model.User;
import com.whatfix.wfl.collab.model.Workspace;
import com.whatfix.wfl.collab.repository.UserRepository;
import com.whatfix.wfl.collab.repository.WorkspaceRepository;

@Service
public class WorkspaceService {

    @Autowired
    private WorkspaceRepository workspaceRepository;

    @Autowired
    private UserRepository userRepository;

    // Service method to create a new workspace
    public Workspace createWorkspace(Workspace workspace) {
        return workspaceRepository.save(workspace);
    }

    // Service method to delete a workspace by ID
    public void deleteWorkspace(UUID id, UUID adminId) {
        Workspace workspace = workspaceRepository.findById(id)
                .orElseThrow(() -> new ResourceNotFoundException("Workspace not found for this id :: " + id));
        if (!workspace.getAdminUserId().contains(adminId)) {
            throw new ResourceNotFoundException("You are not authorized to delete this workspace");
        }
        workspaceRepository.delete(workspace);
    }

    // Service method
```
사용자가 작업 공간에 다른 사용자를 추가하거나 제거할 수 있는 Spring 컨트롤러 및 서비스의 예시를 살펴보겠습니다. 여기서는 필요한 데이터베이스 구성과 리포지토리를 이미 설정했다고 가정합니다.WorkspaceController.java:```lesspackage com.whatfix.wfl.collab.controller;import java.util.UUID;org.springframework.beans.factory.annotation.Autowired를 가져옵니다;org.springframework.http.HttpStatus를 가져옵니다;org.springframework.http.ResponseEntity를 가져옵니다;org.springframework.web.bind.annotation.DeleteMapping을 가져옵니다;import org.springframework.web.bind.annotation.PathVariable;org.springframework.web.bind.annotation.PostMapping을 가져옵니다;org.springframework.web.bind.annotation.RequestBody를 가져옵니다;import org.springframework.web.bind.annotation.RestController;com.whatfix.wfl.collab.model.User를 가져옵니다;com.whatfix.wfl.collab.model.Workspace를 가져옵니다;com.whatfix.wfl.collab.service.WorkspaceService를 임포트합니다;RestControllerpublic class WorkspaceController {    @Autowired    비공개 워크스페이스 서비스 워크스페이스 서비스;    // 새 워크스페이스 생성을 위한 엔드포인트    @PostMapping("/create_workspace")    public ResponseEntity<작업공간> createWorkspace(@RequestBody 작업공간 작업공간, 사용자 사용자) {        UUID adminId = user.getId();        workspace.setAdminUserId(adminId);        워크스페이스 newWorkspace = workspaceService.createWorkspace(워크스페이스);        반환 새 응답 엔티티<>(newWorkspace, HttpStatus.CREATED);    }    // ID로 워크스페이스를 삭제하는 엔드포인트    @DeleteMapping("/delete_workspace/{id}")    public ResponseEntity<String> deleteWorkspace(@PathVariable("id") UUID id, User user) {        workspaceService.deleteWorkspace(id, user.getId());        반환 새 응답 엔티티<>("ID가 " + id + " 성공적으로 삭제된 워크스페이스", HttpStatus.OK);    }        // 워크스페이스에 사용자를 추가하기 위한 엔드포인트    @PostMapping("/add_user_to_workspace")    public ResponseEntity<String> addUserToWorkspace(@PathVariable("workspaceId") UUID workspaceId, @PathVariable("userId") UUID userId, User user) {        workspaceService.addUserToWorkspace(workspaceId, userId, user.getId()));        반환 새 응답 엔티티<>("ID가 " + userId + " ID로 워크스페이스에 추가된 사용자 " + workspaceId, HttpStatus.OK);    }        // 워크스페이스에서 사용자를 제거하기 위한 엔드포인트    @DeleteMapping("/remove_user_from_workspace/{workspaceId}/{userId}")    public ResponseEntity<String> removeUserFromWorkspace(@PathVariable("workspaceId") UUID workspaceId, @PathVariable("userId") UUID userId, User user) {        workspaceService.removeUserFromWorkspace(workspaceId, userId, user.getId()));        반환 새 응답 엔티티<>("ID가 " + userId + " ID가 있는 작업 공간에서 제거됨 " + workspaceId, HttpStatus.OK);    }}```WorkspaceService.java:```javapackage com.whatfix.wfl.collab.service;import java.util.UUID;import org.springframework.beans.factory.annotation.Autowired;org.springframework.stereotype.Service를 가져옵니다;com.whatfix.wfl.collab.exception.ResourceNotFoundException을 가져옵니다;com.whatfix.wfl.collab.model.User를 가져옵니다;com.whatfix.wfl.collab.model.Workspace를 가져옵니다;com.whatfix.wfl.collab.repository.UserRepository를 임포트합니다;com.whatfix.wfl.collab.repository.WorkspaceRepository를 가져옵니다;@Servicepublic class WorkspaceService {    @Autowired    비공개 워크스페이스 리포지토리 워크스페이스 리포지토리;    @Autowired    비공개 사용자 저장소 userRepository;    // 새 워크스페이스를 생성하는 서비스 메서드    public Workspace createWorkspace(Workspace workspace) {        return workspaceRepository.save(workspace);    }    // ID로 워크스페이스를 삭제하는 서비스 메서드    public void deleteWorkspace(UUID id, UUID adminId) {        리파지토리 워크스페이스 = 워크스페이스 리파지토리.findById(id)                .orElseThrow(() -> new ResourceNotFoundException("이 id에 대한 워크스페이스를 찾을 수 없습니다 :: " + id));        if (!workspace.getAdminUserId().contains(adminId)) {            새로운 ResourceNotFoundException("이 작업 영역을 삭제할 권한이 없습니다.")을 던지세요;        }        workspaceRepository.delete(workspace);    }    // 서비스 메서드```