Merge pull request 'RHSRV-1 - Choose a web framework' (#1) from spring-boot into main
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			Reviewed-on: #1 Issue link: https://plane.beatrice.wtf/release-hive/projects/925069c2-6e79-4180-8960-e22aa56e19bd/issues/1ac76823-6bd4-4b3c-85e8-1954073cc4a7
This commit is contained in:
		
							
								
								
									
										5
									
								
								pom.xml
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								pom.xml
									
									
									
									
									
								
							| @@ -19,6 +19,11 @@ | ||||
|             <artifactId>log4j-core</artifactId> | ||||
|             <version>2.23.1</version> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>org.springframework.boot</groupId> | ||||
|             <artifactId>spring-boot-starter-web</artifactId> | ||||
|             <version>3.3.2</version> | ||||
|         </dependency> | ||||
|     </dependencies> | ||||
|  | ||||
|     <properties> | ||||
|   | ||||
| @@ -2,7 +2,10 @@ package wtf.beatrice.releasehive; | ||||
|  | ||||
| import org.apache.logging.log4j.LogManager; | ||||
| import org.apache.logging.log4j.Logger; | ||||
| import org.springframework.boot.SpringApplication; | ||||
| import org.springframework.boot.autoconfigure.SpringBootApplication; | ||||
|  | ||||
| @SpringBootApplication | ||||
| public class Main { | ||||
|  | ||||
|     private static final Logger LOGGER = LogManager.getLogger(Main.class); | ||||
| @@ -10,5 +13,8 @@ public class Main { | ||||
|     public static void main(String[] args) { | ||||
|         LOGGER.info("Hello world!"); | ||||
|  | ||||
|         LOGGER.info("Initializing Spring Boot"); | ||||
|         SpringApplication.run(Main.class, args); | ||||
|         LOGGER.info("Spring Boot initialized!"); | ||||
|     } | ||||
| } | ||||
|   | ||||
							
								
								
									
										13
									
								
								src/main/java/wtf/beatrice/releasehive/TryController.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								src/main/java/wtf/beatrice/releasehive/TryController.java
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| package wtf.beatrice.releasehive; | ||||
|  | ||||
| import org.springframework.web.bind.annotation.GetMapping; | ||||
| import org.springframework.web.bind.annotation.RestController; | ||||
|  | ||||
| @RestController | ||||
| public class TryController { | ||||
|  | ||||
|     @GetMapping("/try") | ||||
|     public String tryMethod() { | ||||
|         return "Hello World!"; | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user