# hello-spring-boot **Repository Path**: cobra_s/hello-spring-boot ## Basic Information - **Project Name**: hello-spring-boot - **Description**: 使用 SpringBoot 提供一个输出 hello 的 controller - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2020-05-25 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # hello-spring-boot 使用 SpringBoot 提供一个输出 hello 的 controller 使用 MockMvc 测试 1. 添加 SpringBoot parent 依赖 ```xml org.springframework.boot spring-boot-starter-parent 1.5.8.RELEASE ``` 2. 添加 spring-boot-starter-web 依赖 ```xml org.springframework.boot spring-boot-starter-web ``` 3. 打包 ```shell script mvn install -Dmaven.test.skip=true ``` 4. 启动 ```shell script java -jar target/hello-spring-boot.jar ``` 在浏览器 访问 http://127.0.0.1:8080/hello