BAEL-16906 Slice 6 | The top 100 articles should have their own package in the module (#7652)

-Moved packages
This commit is contained in:
Dhawal Kapil 2019-08-27 06:43:00 +05:30 committed by Josh Cummings
parent 192774ef2c
commit 7e18a82d1b
6 changed files with 10 additions and 10 deletions

View File

@ -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;

View File

@ -1,4 +1,4 @@
package com.baeldung.transfer; package com.baeldung.requestresponsebody;
public class LoginForm { public class LoginForm {
private String username; private String username;

View File

@ -1,4 +1,4 @@
package com.baeldung.transfer; package com.baeldung.requestresponsebody;
public class ResponseTransfer { public class ResponseTransfer {

View File

@ -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 {

View File

@ -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)

View File

@ -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)