Skip to content

Commit

Permalink
refactor: access modifier controller
Browse files Browse the repository at this point in the history
  • Loading branch information
duytc authored and duytc committed May 11, 2023
1 parent c406d5c commit 7859c69
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# common

* Những thư viện dùng chung cho tất cả dự án
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public abstract class CommandController<RESPONSE, REQUEST extends ICommand<RESPO
@Autowired
private ISpringBus springBus;

public CommandController() {
protected CommandController() {
}

public ResponseEntity<BaseResponse<RESPONSE>> execute(REQUEST request) {
Expand Down
3 changes: 2 additions & 1 deletion cqrs/src/main/java/io/cqrs/controller/PageController.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;


@Component
public abstract class PageController<RESPONSE, REQUEST extends IPage<RESPONSE>> {
@Autowired
private ISpringBus springBus;
Expand Down

0 comments on commit 7859c69

Please sign in to comment.