当前位置:网站首页>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勾上就可以
不知道具体哪个起了作用
如何导入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("驱动有问题");
}
}
}
边栏推荐
- Working principle of genius telephone watch Z3
- Common DOS commands
- open-mmlab labelImg mmdetection
- Arduino gets the length of the array
- [esp32 learning-2] esp32 address mapping
- Flink late data processing (3)
- ESP学习问题记录
- Redis based distributed locks and ultra detailed improvement ideas
- 單片機藍牙無線燒錄
- 关于Gateway中使用@Controller的问题
猜你喜欢
Cannot change version of project facet Dynamic Web Module to 2.3.
RT thread API reference manual
Redis based distributed ID generator
VSCode基础配置
Conditional probability
JS variable types and common type conversions
Stm32f1+bc20+mqtt+freertos system is connected to Alibaba cloud to transmit temperature and humidity and control LED lights
Priority inversion and deadlock
数据库课程设计:高校教务管理系统(含代码)
Latex learning
随机推荐
ES6 grammar summary -- Part I (basic)
Arduino get random number
Arm pc=pc+8 is the most understandable explanation
Expected value (EV)
JS变量类型以及常用类型转换
Remember an experience of ECS being blown up by passwords - closing a small black house, changing passwords, and changing ports
[Offer29] 排序的循环链表
GCC compilation options
MySQL時間、時區、自動填充0的問題
Stm32f1+bc20+mqtt+freertos system is connected to Alibaba cloud to transmit temperature and humidity and control LED lights
ARM PC=PC+8 最便于理解的阐述
Intermediate use tutorial of postman [environment variables, test scripts, assertions, interface documents, etc.]
MySQL时间、时区、自动填充0的问题
Basic operations of databases and tables ----- modifying data tables
Esp8266 connect onenet (old mqtt mode)
Feature of sklearn_ extraction. text. CountVectorizer / TfidVectorizer
Missing value filling in data analysis (focus on multiple interpolation method, miseforest)
Get the position of the nth occurrence of the string
Kaggle competition two Sigma connect: rental listing inquiries
RT thread API reference manual