#115 - Harmonized package names.
We now consistently use example.springdata.$store as base package name.
This commit is contained in:
@@ -13,7 +13,11 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package example;
|
||||
package example.springdata.web;
|
||||
|
||||
import example.springdata.web.users.Password;
|
||||
import example.springdata.web.users.UserManagement;
|
||||
import example.springdata.web.users.Username;
|
||||
|
||||
import java.util.stream.IntStream;
|
||||
|
||||
@@ -29,10 +33,6 @@ import org.springframework.data.web.config.EnableSpringDataWebSupport;
|
||||
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
||||
import org.springframework.security.crypto.password.PasswordEncoder;
|
||||
|
||||
import example.users.Password;
|
||||
import example.users.UserManagement;
|
||||
import example.users.Username;
|
||||
|
||||
/**
|
||||
* Central Spring Boot application class to bootstrap the application. Excludes Spring Security auto-configuration as we
|
||||
* don't need it for the example but only want to use a {@link PasswordEncoder} (see {@link #passwordEncoder()}).
|
||||
@@ -41,9 +41,9 @@ import example.users.Username;
|
||||
* {@link EnableSpringDataWebSupport}. The core aspects of the enabled functionality shown in this example are:
|
||||
* <ol>
|
||||
* <li>Automatic population of a {@link Pageable} instances from request parameters (see
|
||||
* {@link example.users.web.UserController#users(Pageable)})</li>
|
||||
* {@link example.springdata.web.users.web.UserController#users(Pageable)})</li>
|
||||
* <li>The ability to use proxy-backed interfaces to bind request payloads (see
|
||||
* {@link example.users.web.UserController.UserForm})</li>
|
||||
* {@link example.springdata.web.users.web.UserController.UserForm})</li>
|
||||
* </ol>
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package example.users;
|
||||
package example.springdata.web.users;
|
||||
|
||||
import javax.persistence.Embeddable;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package example.users;
|
||||
package example.springdata.web.users;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package example.users;
|
||||
package example.springdata.web.users;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package example.users;
|
||||
package example.springdata.web.users;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package example.users;
|
||||
package example.springdata.web.users;
|
||||
|
||||
import javax.persistence.Embeddable;
|
||||
|
||||
@@ -13,10 +13,15 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package example.users.web;
|
||||
package example.springdata.web.users.web;
|
||||
|
||||
import static org.springframework.validation.ValidationUtils.*;
|
||||
|
||||
import example.springdata.web.users.Password;
|
||||
import example.springdata.web.users.User;
|
||||
import example.springdata.web.users.UserManagement;
|
||||
import example.springdata.web.users.Username;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
@@ -35,11 +40,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.servlet.view.RedirectView;
|
||||
|
||||
import example.users.Password;
|
||||
import example.users.User;
|
||||
import example.users.UserManagement;
|
||||
import example.users.Username;
|
||||
|
||||
/**
|
||||
* A sample controller implementation to showcase Spring Data web support:
|
||||
* <ol>
|
||||
@@ -13,14 +13,14 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package example.users;
|
||||
package example.springdata.web.users;
|
||||
|
||||
import example.springdata.web.Application;
|
||||
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.boot.test.SpringApplicationConfiguration;
|
||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
|
||||
import example.Application;
|
||||
|
||||
/**
|
||||
* Integration tests to bootstrap the application.
|
||||
*
|
||||
@@ -13,11 +13,16 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package example.users;
|
||||
package example.springdata.web.users;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.*;
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import example.springdata.web.users.Password;
|
||||
import example.springdata.web.users.User;
|
||||
import example.springdata.web.users.UserManagement;
|
||||
import example.springdata.web.users.Username;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
@@ -13,7 +13,12 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package example.users;
|
||||
package example.springdata.web.users;
|
||||
|
||||
import example.springdata.web.users.Password;
|
||||
import example.springdata.web.users.User;
|
||||
import example.springdata.web.users.UserRepository;
|
||||
import example.springdata.web.users.Username;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
Reference in New Issue
Block a user