#290 - Removed obsolete @Autowired annotations.
This commit is contained in:
@@ -20,7 +20,6 @@ import javax.sql.DataSource;
|
||||
import lombok.NonNull;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.util.Assert;
|
||||
@@ -47,7 +46,7 @@ import example.springdata.jpa.multipleds.order.OrderRepository;
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
@Component
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
@RequiredArgsConstructor
|
||||
public class DataInitializer {
|
||||
|
||||
private final @NonNull OrderRepository orders;
|
||||
|
||||
@@ -31,7 +31,7 @@ import org.springframework.data.mongodb.core.aggregation.AggregationResults;
|
||||
* @author Thomas Darimont
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
@RequiredArgsConstructor
|
||||
class OrderRepositoryImpl implements OrderRepositoryCustom {
|
||||
|
||||
private final MongoOperations operations;
|
||||
|
||||
@@ -35,7 +35,7 @@ import org.springframework.util.Assert;
|
||||
*/
|
||||
@Transactional
|
||||
@Service
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
@RequiredArgsConstructor
|
||||
public class UserManagement {
|
||||
|
||||
private final UserRepository repository;
|
||||
|
||||
@@ -52,7 +52,7 @@ import example.users.Username;
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
@Controller
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/users")
|
||||
class UserController {
|
||||
|
||||
|
||||
@@ -19,7 +19,6 @@ import example.users.User;
|
||||
import example.users.UserRepository;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
import org.springframework.data.querydsl.binding.QuerydslPredicate;
|
||||
import org.springframework.data.web.PageableDefault;
|
||||
@@ -40,7 +39,7 @@ import com.querydsl.core.types.Predicate;
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
@Controller
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired) )
|
||||
@RequiredArgsConstructor
|
||||
class UserController {
|
||||
|
||||
private final UserRepository repository;
|
||||
|
||||
Reference in New Issue
Block a user