Skip to content

Conversation

@riknel
Copy link
Contributor

@riknel riknel commented Dec 19, 2016

No description provided.

@ignorer ignorer self-assigned this Dec 20, 2016
Copy link
Collaborator

@ignorer ignorer left a 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,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Вот такое стоит либо вынести в конфиг, либо прописать здесь же как значение по умолчанию. Иначе, как это случилось и у меня, другие не смогут запустить, пока не подадут правильную опцию jvm.

<version>1.0.0</version>
<scope>test</scope>
</dependency>
<dependency>
Copy link
Collaborator

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()
Copy link
Collaborator

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 {
Copy link
Collaborator

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.

2 participants