In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Java Spring Boot how to completely solve the SSM configuration problem, many novices are not very clear about this, in order to help you solve this problem, the following small series will explain in detail for everyone, there are people who need this can learn, I hope you can gain something.
Create projects directly with IDEA
1) Create a new project
2. Choose spring initializr
Select Initialize Component Web
Waiting for the project to build successfully
Create a HelloController class under the com.longdi.helloworld package
package com.longdi.helloworld.controller; import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bind.annotation.RestController; /** * @author: Longdi * @description * @date: 2021/9/29 13:03 */@ RestControlpublic class HelloController { //Interface:http://localhost:8080/hello @RequestMapping("hello") public String hello(){ //invoke service and receive front-end parameters return "hello world"; }}
project structure
Launch the project and display HelloWorld! in your browser.
http://localhost:8080/hello
It only takes a few steps to complete the development of a web interface. SpringBoot is that simple.
Make the project into jar package, click maven package
If the package is successful, a jar package will be generated under the target directory.
Once the jar package is ready, it can run anywhere!
How to change the letters displayed at startup, that is, the banner pattern
Just one step: create a new banner.txt in the resources directory under the project.
SpringBoot is so easy to operate
Did reading the above help you? If you still want to have further understanding of related knowledge or read more related articles, please pay attention to the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.