springboot创建demo例子

2024-10-31 07:28:38

1、springboot搭建完了之后,可以先大致了解一下。pom.xml这个里面放了我们很多的配置,比如mybatis和MySQL等等,可以了解一下

springboot创建demo例子

3、DemoApplication这个类就是我们的启动类,以后启动springboot就可以使用

springboot创建demo例子

5、右击Run As,选择springboot启动

springboot创建demo例子

7、在浏览器输入http://localhost:8080/hello然后看到运行结果!

springboot创建demo例子
猜你喜欢