最新版IDEA:Add web Framework Support步骤/构建JavaWeb项目步骤

        由于最新版IDEA修改了设置添加框架支持仍然无法显示,给创建javaweb项目造成困扰,现给出构建javaweb的步骤(包含add framework web support的方式)

Add frame work web 的步骤

第一步:

.

第二步

 第三步: 这一步添加后的页面右侧 可以为框架项目署名

点击apply ok

可以发现该项目已经有web文件夹了

以tomcat为服务器创建javaweb项目的方式

注意:请在上面web框架添加完成后,继续操作

第四步

第五步

第六步  把添加了artifact框架的项目加入(此时只有一个)

点击 apply ok

第七部(可选) 添加数据库

第八步

填写自己的数据库服务器的账号密码

第九步 选择其中一个和项目匹配的数据库即可

第十步:运行项目

运行成功!

  • 11
    点赞
  • 17
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
This error message usually occurs when the JDBC driver for MySQL is not found or not properly configured in your Java application. To fix this issue, you need to make sure that you have the correct JDBC driver for MySQL installed and that the driver is included in your application's classpath. Here are some steps you can follow to resolve this issue: 1. Download the JDBC driver for MySQL from the official website: https://dev.mysql.com/downloads/connector/j/ 2. Extract the downloaded ZIP file and copy the JAR file to a folder in your project directory. 3. Add the JDBC driver JAR file to your project's classpath. You can do this by adding the following line to your project's build file (e.g. pom.xml for Maven): <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.23</version> </dependency> 4. Make sure that you are using the correct JDBC URL for your MySQL database. The format should be like this: jdbc:mysql://localhost:3306/your_database_name Replace "your_database_name" with the actual name of your MySQL database. 5. Check that your MySQL database is running and accessible from your Java application. You can test this by using a MySQL client tool (e.g. MySQL Workbench) to connect to the database using the same credentials that your Java application is using. Once you have verified that the JDBC driver is installed and configured correctly, and that your MySQL database is running and accessible, you should be able to connect to the database from your Java application without any issues.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

影流小白

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值