mvn package vs springboot:repackage
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
package com.baeldung.demo;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class DemoApplication {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(DemoApplication.class, args);
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
package com.baeldung.demo;
|
||||
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
public class DemoRestController {
|
||||
|
||||
@GetMapping(value = "/welcome")
|
||||
public ResponseEntity<String> welcomeEndpoint() {
|
||||
return ResponseEntity.ok("Welcome to Baeldung Spring Boot Demo!");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user