Closed maxinglo closed 10 months ago
actually there's a spring-starter for mybatis that can read jdbc config from application.yml, however, as mentioned below, you are NOT allowed to use mybatis since it's generally considered as an orm.
@hezean What would be the consequences if I use MyBatis? Would it result in penalties or a deduction of points? I need to assess whether I should rewrite my entire code.
May I first ask if you were in CS307 or CS213? I'll consult with the corresponding tutor for you.
@hezean Professor Cheng Ran's CS307.
@maxinglo After consulting TA, our decision is that if you insist using ORM, you will get 50% of your original benchmark score.
Describe your question
During the development process, I utilized the MyBatis library. However, I couldn't figure out how to retrieve the database URL and account credentials from the
application.yml
file. As a result, I created a separate configuration file namedmybatis-config.xml
and stored the relevant information there. Would this pose any issues?