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

How to configure the database #2

Open
cobolbaby opened this issue Aug 27, 2024 · 5 comments
Open

How to configure the database #2

cobolbaby opened this issue Aug 27, 2024 · 5 comments

Comments

@cobolbaby
Copy link

cobolbaby commented Aug 27, 2024

Think about how to simplify the Quickstart. Have you heard of Flyway?

@cobolbaby cobolbaby changed the title 如何配置数据库 How to configure the database Aug 27, 2024
@zihe-git
Copy link
Owner

for my Java web project, to configure the database have a few steps:

  1. firstly, for my project, you need to install mysql.
  2. udate db.properties, this file contain database connection details. like url, username, password.
  3. configure datasource in spring(applicationContext.xml), configure the datasource bean in spring configuration file.
  4. configure mybatis(mybatis-config.xml), ensure that mybatis configuration is set up correctly.
  5. configure spring mvc(springmvc.xml), ensure that spring mvc is correctly configured to work with mybatis and spring.
  6. after setting up, test.

to simplify the quickstart by using project templates, minimizing configuration files, leveraging defaults, and using some tools. and i never heard of flyway.

@wisjh
Copy link
Collaborator

wisjh commented Aug 28, 2024

To simplify the Quickstart, consider the following steps:
1.Break down complex instructions into simpler, easy-to-follow steps.Use straightforward, concise language to explain each step.
2.Clearly list any prerequisites needed before starting, such as software installations or configurations.
3.Use screenshots to illustrate key steps and interfaces.Include flowcharts or diagrams to show the overall process or architecture.
4.Regularly update the Quickstart to reflect changes in software or best practices.Clearly indicate the version of the Quickstart and ensure it matches the software version.

@wisjh
Copy link
Collaborator

wisjh commented Aug 28, 2024

i do not know flyway.

@cobolbaby
Copy link
Author

for my Java web project, to configure the database have a few steps:

Besides the first and second steps that must be done, can the following confirmation steps be omitted? Do they need to be manually performed? And by the way, was the table creation overlooked?

@zihe-git
Copy link
Owner

zihe-git commented Sep 1, 2024

i think that besides the first and second steps, the following steps cannot be omitted. subsequent configuration steps can be simplified using automation to reduce manual configuration work, but they should not be completely omitted, it is necessary to verify that the configurations are correct.
yes, I forgot that the table creation and it can be done after configuring the database.

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

No branches or pull requests

3 participants