이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 3. Creating the main class and test class for GreetingController
When you create your project on the command line, the Quarkus Maven plugin automatically generates the GreetingController class file with Spring Web annotations that defines the REST endpoint and a class file that contains the unit test for GreetingController.
Procedure
Create the
src/main/java/org/acme/spring/web/GreetingController.javafile that contains the following code.src/main/java/org/acme/spring/web/GreetingController.java
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Create the
src/test/java/org/acme/spring/web/GreetingControllerTest.javafile that contains the following code.src/test/java/org/acme/spring/web/GreetingControllerTest.java
Copy to Clipboard Copied! Toggle word wrap Toggle overflow