-
Notifications
You must be signed in to change notification settings - Fork 79
g597.kirilenko.task4 #327
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
base: master
Are you sure you want to change the base?
g597.kirilenko.task4 #327
Conversation
ignorer
left a comment
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.
Нет авторизации, не используется БД
| public class BillingDatabaseConfiguration { | ||
| @Bean | ||
| public DataSource billingDataSource( | ||
| @Value("${ru.mipt.java2016.homework.g597.kirilenko.task4.jdbcUrl}") String jdbcUrl, |
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.
Вот такое стоит либо вынести в конфиг, либо прописать здесь же как значение по умолчанию. Иначе, как это случилось и у меня, другие не смогут запустить, пока не подадут правильную опцию jvm.
homework-g597-kirilenko/pom.xml
Outdated
| <version>1.0.0</version> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <dependency> |
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.
Эту зависимость можно было бы выпилить, в целом.
| .logout().disable() | ||
| .csrf().disable() | ||
| .authorizeRequests() | ||
| .antMatchers("/eval/**").authenticated() |
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.
По-хорошему бы на все категории запросов из задания требовать аутентификацию. То есть function и variable тоже.
| @RequestMapping(path = "/variable/{variableName}", method = RequestMethod.PUT, | ||
| consumes = "text/plain", produces = "text/plain") | ||
| public void putVariable(@PathVariable String variableName, | ||
| @RequestBody String expr) throws ParsingException { |
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.
Беспощадное форматирование
No description provided.