-start springboot
pom.xml: Where you can put some library you need ex)
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
</dependency>
Dependency: the connection between the two modules. It might combine everything. need to do Dependency injection.
JUnit: popular framework of java
@RestController has a ResponseBody
DemoAplication initial configuration.
package com.example.demo;
import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;import org.springframework.boot.autoconfigure.EnableAutoConfiguration;import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
@SpringBootApplication@EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class})
public class DemoApplication {
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args); }
}
Create the Controller package in com.example.demo and make java HomeController in that package.
'Footstep . 발자취' 카테고리의 다른 글
My footstep My first springboot book (0) | 2020.03.18 |
---|---|
2020-02-18-My footstep making a github blog with jekyll (0) | 2020.03.18 |
2020-02-15-My footstep (0) | 2020.03.16 |
2020-02-14-My footstep (0) | 2020.03.16 |
2020-02-12-My footstep (0) | 2020.03.16 |