BAEL-16906 Slice 6 | The top 100 articles should have their own package in the module (#7652)
-Moved packages
This commit is contained in:
parent
192774ef2c
commit
7e18a82d1b
|
@ -1,7 +1,7 @@
|
||||||
package com.baeldung.web.controller;
|
package com.baeldung.requestresponsebody;
|
||||||
|
|
||||||
import com.baeldung.services.ExampleService;
|
import com.baeldung.services.ExampleService;
|
||||||
import com.baeldung.transfer.ResponseTransfer;
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
@ -10,7 +10,6 @@ import org.springframework.http.ResponseEntity;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
import com.baeldung.transfer.LoginForm;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.ResponseBody;
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package com.baeldung.transfer;
|
package com.baeldung.requestresponsebody;
|
||||||
|
|
||||||
public class LoginForm {
|
public class LoginForm {
|
||||||
private String username;
|
private String username;
|
|
@ -1,4 +1,4 @@
|
||||||
package com.baeldung.transfer;
|
package com.baeldung.requestresponsebody;
|
||||||
|
|
||||||
public class ResponseTransfer {
|
public class ResponseTransfer {
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
package com.baeldung.services;
|
package com.baeldung.services;
|
||||||
|
|
||||||
import com.baeldung.transfer.LoginForm;
|
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import com.baeldung.requestresponsebody.LoginForm;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
public class ExampleService {
|
public class ExampleService {
|
||||||
|
|
||||||
|
|
|
@ -17,9 +17,9 @@ import org.springframework.test.web.servlet.MockMvc;
|
||||||
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
|
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
|
||||||
|
|
||||||
import com.baeldung.SpringBootRestApplication;
|
import com.baeldung.SpringBootRestApplication;
|
||||||
|
import com.baeldung.requestresponsebody.ExamplePostController;
|
||||||
|
import com.baeldung.requestresponsebody.LoginForm;
|
||||||
import com.baeldung.services.ExampleService;
|
import com.baeldung.services.ExampleService;
|
||||||
import com.baeldung.transfer.LoginForm;
|
|
||||||
import com.baeldung.web.controller.ExamplePostController;
|
|
||||||
|
|
||||||
@RunWith(SpringRunner.class)
|
@RunWith(SpringRunner.class)
|
||||||
@SpringBootTest(classes = SpringBootRestApplication.class)
|
@SpringBootTest(classes = SpringBootRestApplication.class)
|
||||||
|
|
|
@ -18,9 +18,9 @@ import org.springframework.test.web.servlet.MockMvc;
|
||||||
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
|
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
|
||||||
|
|
||||||
import com.baeldung.SpringBootRestApplication;
|
import com.baeldung.SpringBootRestApplication;
|
||||||
|
import com.baeldung.requestresponsebody.ExamplePostController;
|
||||||
|
import com.baeldung.requestresponsebody.LoginForm;
|
||||||
import com.baeldung.services.ExampleService;
|
import com.baeldung.services.ExampleService;
|
||||||
import com.baeldung.transfer.LoginForm;
|
|
||||||
import com.baeldung.web.controller.ExamplePostController;
|
|
||||||
|
|
||||||
@RunWith(SpringRunner.class)
|
@RunWith(SpringRunner.class)
|
||||||
@SpringBootTest(classes = SpringBootRestApplication.class)
|
@SpringBootTest(classes = SpringBootRestApplication.class)
|
||||||
|
|
Loading…
Reference in New Issue