当前位置:网站首页>idea问题记录
idea问题记录
2022-07-06 09:18:00 【劲腰傩舞】
目录
新建web项目后点击初始界面的helloservlet之后报错?
我的是因为tomcat的版本问题,从10换成9就没有问题了
css文件无效或者更改css文件后重启无效?
问题:不管怎样修改css文件,启动idea之后都没有效果,除非把css直接写在html中
浏览器:谷歌
先删除idea项目中的target文件
然后删除了浏览器的缓存
再重启就能及时体现效果
莫名其妙
…
我yue了
证书不被信任?
没有破解idea,就是用学生证申请的…
结果
可网上所有人都在说破解…"~%?..,# *'*&℃$︿*?"
暂时不知道为什么
jsp中java代码部分out不可以使用print方法?
除了像网上其他博客
在webapps文件夹下自行建立一个lib然后导入项目之外
只需要在刚开始新建项目的时候
把full platform勾上就可以
不知道具体哪个起了作用](/img/ac/70ad6f156447240bb6ff2c926adfed.png)
如何导入Mysql驱动

点击download
下载后解压一下
打开idea



然后把整个解压后的文件导入进来
apply就可以了
一个测试样例
package day01;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
public class DB1 {
public static String driver="com.mysql.cj.jdbc.Driver";
//需要改成你的用户名和密码
public static String user="root";
public static String password="xxxx";
public static void main(String[] args) {
//创建数据库
try {
Class.forName(driver);
Connection con1;
String url1="jdbc:mysql://localhost:3306";
try {
con1 = DriverManager.getConnection(url1, user, password);
Statement statement=con1.createStatement();
statement.executeUpdate("create database mysql_db1");
statement.close();
con1.close();
} catch (SQLException throwables) {
System.out.println("你的SQL语句写错了。。。");
}
} catch (ClassNotFoundException e) {
System.out.println("驱动有问题");
}
}
}
边栏推荐
猜你喜欢

Kaggle competition two Sigma connect: rental listing inquiries (xgboost)

Single chip Bluetooth wireless burning

MySQL time, time zone, auto fill 0

Basic operations of databases and tables ----- modifying data tables

Arduino JSON data information parsing

Classification, understanding and application of common methods of JS array

【ESP32学习-2】esp32地址映射

Priority inversion and deadlock

Latex learning

Redis based distributed ID generator
随机推荐
Problèmes avec MySQL time, fuseau horaire, remplissage automatique 0
Rough analysis of map file
The first simple case of GNN: Cora classification
Inline detailed explanation [C language]
Minio file download problem - inputstream:closed
Stm32f1+bc20+mqtt+freertos system is connected to Alibaba cloud to transmit temperature and humidity and control LED lights
Vulnhub target: hacknos_ PLAYER V1.1
Servlet
2022.2.12 resumption
[golang] leetcode intermediate - fill in the next right node pointer of each node & the k-smallest element in the binary search tree
STM32 how to locate the code segment that causes hard fault
VIM command line notes
Priority inversion and deadlock
SSD technical features
Minio文件下载问题——inputstream:closed
ORA-02030: can only select from fixed tables/views
@Autowired 和 @Resource 的区别
[Nodejs] 20. Koa2 onion ring model ----- code demonstration
Redis 缓存更新策略,缓存穿透、雪崩、击穿问题
Basic operations of databases and tables ----- creating data tables