完成了对其的浏览器本地化部署。

This commit is contained in:
2026-05-03 12:21:13 +08:00
parent b13595dc34
commit d983eef99e

View File

@@ -1,4 +1,4 @@
package org.example.docker_project.Controller;
package org.example.docker_project.Controller; // 包名要和文件夹路径一致
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@@ -6,7 +6,7 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
public class HelloController {
@GetMapping("/hello")
@GetMapping({"/hello","/","/Isharmla"})
public String sayHello() {
return "Hello from Spring Boot in Docker!";
}