当前位置:网站首页>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("驱动有问题");
}
}
}
边栏推荐
- ES6 grammar summary -- Part 2 (advanced part es6~es11)
- (四)R语言的数据可视化——矩阵图、柱状图、饼图、散点图与线性回归、带状图
- Detailed explanation of truncate usage
- 程序设计大作业:教务管理系统(C语言)
- MySQL时间、时区、自动填充0的问题
- AMBA、AHB、APB、AXI的理解
- Arduino uno R3 register writing method (1) -- pin level state change
- (三)R语言的生物信息学入门——Function, data.frame, 简单DNA读取与分析
- AMBA、AHB、APB、AXI的理解
- MySQL takes up too much memory solution
猜你喜欢

Missing value filling in data analysis (focus on multiple interpolation method, miseforest)

Kaggle competition two Sigma connect: rental listing inquiries

RT thread API reference manual

Redis 缓存更新策略,缓存穿透、雪崩、击穿问题

Feature of sklearn_ extraction. text. CountVectorizer / TfidVectorizer

Pytorch: tensor operation (I) contiguous

JS 函数提升和var变量的声明提升

Walk into WPF's drawing Bing Dwen Dwen

Learning notes of JS variable scope and function

基于Redis的分布式锁 以及 超详细的改进思路
随机推荐
Arduino get random number
Basic operations of databases and tables ----- creating data tables
[Clickhouse kernel principle graphic explanation] about the collaborative work of partitioning, indexing, marking and compressed data
The first simple case of GNN: Cora classification
[esp32 learning-2] esp32 address mapping
Pytorch: tensor operation (I) contiguous
@The difference between Autowired and @resource
Stm32f1+bc20+mqtt+freertos system is connected to Alibaba cloud to transmit temperature and humidity and control LED lights
SSD technical features
Basic operations of databases and tables ----- classification of data
Time slice polling scheduling of RT thread threads
ES6 grammar summary -- Part 2 (advanced part es6~es11)
Arduino uno R3 register writing method (1) -- pin level state change
Variable parameter principle of C language function: VA_ start、va_ Arg and VA_ end
Esp8266 connects to bafayun (TCP maker cloud) through Arduino IED
RT thread API reference manual
Gateway fails to route according to the service name, and reports an error service unavailable, status=503
(四)R语言的数据可视化——矩阵图、柱状图、饼图、散点图与线性回归、带状图
Symbolic representation of functions in deep learning papers
VSCode基础配置