zoukankan      html  css  js  c++  java
  • springboot01-快速入门

    创建springboot项目有两种方式,我接下来讲用的最多的一种(IDEA方式)

    1.打开idea

    2.点击spring Initializr

     3.

     4.

     5.接下来一直next

     6.

     controller和其他包(如pojo,dao)都必须和主程序同一级,要不然扫描不到

    7.在controller包里写一个简单的HelloController类

     8.回到主程序,点击运行

     9.然后浏览器中输入localhost:8080,出现以下截图说明成功了

     10.在浏览器中输入http://localhost:8080/hello

     11.如果想更改端口号的话,可以在配置文件中修改

  • 相关阅读:
    cmake
    docker
    rust
    linux
    FPGA
    visual studio
    win+R
    word文档的导出(用freemarker模板导出)(桃)
    iconfont的引入方法
    jquery 日期插件
  • 原文地址:https://www.cnblogs.com/chaogechaoge/p/14633333.html
Copyright © 2011-2022 走看看