Skip to content
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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

onceRemastered
Copy link

Почему-то не проходит post-запрос. С get все в порядке.

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]>
Copy link
Owner

@typeundefined typeundefined left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

По коду все хорошо, но конфиг верните :)

.gitignore Outdated Show resolved Hide resolved
@@ -7,6 +7,6 @@ spring:
hibernate.ddl-auto: update
datasource:
url: jdbc:postgresql://localhost:5432/home-budget
username: user
password: myPass
username: postgres
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Про эти настройки забыли

Copy link
Author

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) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В данном случае вы не сможете залогиниться, отправляя JSON (@RequestBody забыт)
И пока что нет возможности зарегистрироваться (как вы, кстати, отлаживались?)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А вот никак)) Не регистрируется. Буду править вечером

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants