Move all samples to the root dir
Signed-off-by: Anca Iordache <anca.iordache@docker.com>
This commit is contained in:
		
							parent
							
								
									0c6fcde001
								
							
						
					
					
						commit
						f1e4cca535
					
				
					 262 changed files with 0 additions and 0 deletions
				
			
		
							
								
								
									
										16
									
								
								react-java-mysql/backend/src/main/java/com/company/project/Application.java
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										16
									
								
								react-java-mysql/backend/src/main/java/com/company/project/Application.java
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,16 @@ | |||
| package com.company.project; | ||||
| 
 | ||||
| import org.springframework.boot.SpringApplication; | ||||
| import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | ||||
| import org.springframework.boot.autoconfigure.SpringBootApplication; | ||||
| import org.springframework.context.annotation.ComponentScan; | ||||
| 
 | ||||
| @SpringBootApplication | ||||
| @EnableAutoConfiguration | ||||
| @ComponentScan(basePackages = {"com.company.project"}) | ||||
| public class Application { | ||||
| 
 | ||||
|     public static void main(String[] args) { | ||||
|         SpringApplication.run(Application.class, args); | ||||
|     } | ||||
| } | ||||
|  | @ -0,0 +1,16 @@ | |||
| package com.company.project.controllers; | ||||
| 
 | ||||
| import org.springframework.stereotype.Controller; | ||||
| import org.springframework.ui.Model; | ||||
| import org.springframework.web.bind.annotation.GetMapping; | ||||
| import org.springframework.web.bind.annotation.RequestParam; | ||||
| 
 | ||||
| @Controller | ||||
| public class HomeController { | ||||
| 
 | ||||
|     @GetMapping("/") | ||||
|     public String showHome(String name, Model model) { | ||||
|         return "home"; | ||||
|     } | ||||
| 
 | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue