-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ошибка при запуске в CategoryService. #7
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: onceRemastered <[email protected]>
Signed-off-by: onceRemastered <[email protected]> # Conflicts: # src/main/java/dsr/amm/homebudget/controller/CategoryController.java # src/main/java/dsr/amm/homebudget/data/dto/CategoryDTO.java # src/main/java/dsr/amm/homebudget/data/repository/CategoryRepository.java # src/main/java/dsr/amm/homebudget/service/CategoryService.java
…ted in AuthController and AuthService (I guess) Signed-off-by: onceRemastered <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
По коду все хорошо, но конфиг верните :)
src/main/resources/application.yaml
Outdated
@@ -7,6 +7,6 @@ spring: | |||
hibernate.ddl-auto: update | |||
datasource: | |||
url: jdbc:postgresql://localhost:5432/home-budget | |||
username: user | |||
password: myPass | |||
username: postgres |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Про эти настройки забыли
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Сделала. Не успела просто сама за собой)
|
||
@Autowired | ||
private AuthService service; | ||
|
||
@RequestMapping(path="/login", method = RequestMethod.POST) | ||
public void login(LoginDTO loginDTO) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
В данном случае вы не сможете залогиниться, отправляя JSON (@RequestBody
забыт)
И пока что нет возможности зарегистрироваться (как вы, кстати, отлаживались?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А вот никак)) Не регистрируется. Буду править вечером
Почему-то не проходит post-запрос. С get все в порядке.