随笔分类 -  javaweb

摘要:改了这两个地方就报错,后来发现是resources目录层级建错了。记得resources里的目录应该用/来分隔开而不是. 阅读全文
posted @ 2023-03-05 13:55 大灰狼21 阅读(256) 评论(0) 推荐(0) 编辑
摘要:cmd输入taskkill /f /t /im java.exe 然后重启tomcat https://blog.csdn.net/weixin_62802580/article/details/128511614 阅读全文
posted @ 2023-03-05 10:25 大灰狼21 阅读(14) 评论(0) 推荐(0) 编辑
摘要:<!--jstl--><dependency> <groupId>jstl</groupId> <artifactId>jstl</artifactId> <version>1.2</version></dependency><dependency> <groupId>taglibs</groupI 阅读全文
posted @ 2023-03-05 09:11 大灰狼21 阅读(220) 评论(0) 推荐(0) 编辑
摘要:前提使用servlet跳转就访问不了,必须加 在jsp上面加上 <%@page isELIgnored="false"%> 阅读全文
posted @ 2023-03-05 08:51 大灰狼21 阅读(12) 评论(0) 推荐(0) 编辑
摘要:resp.setContentType("text/html;charset=utf-8"); 阅读全文
posted @ 2023-03-04 15:53 大灰狼21 阅读(33) 评论(0) 推荐(0) 编辑
摘要:String username = req.getParameter("username");username=new String(username.getBytes(StandardCharsets.ISO_8859_1),StandardCharsets.UTF_8); 阅读全文
posted @ 2023-03-04 15:10 大灰狼21 阅读(11) 评论(0) 推荐(0) 编辑
摘要:<web-app> <display-name>Archetype Created Web Application</display-name> <servlet> <servlet-name>demo13</servlet-name> <servlet-class>com.itheima.web. 阅读全文
posted @ 2023-03-04 11:21 大灰狼21 阅读(72) 评论(0) 推荐(0) 编辑
摘要:应该是端口被占用了, https://blog.csdn.net/qq_23853743/article/details/84432365 这个是找到对应的pid然后杀死占用端口的进程。 还有一招是书命令,没试过 https://blog.csdn.net/weixin_62802580/artic 阅读全文
posted @ 2023-03-04 10:35 大灰狼21 阅读(18) 评论(0) 推荐(0) 编辑
摘要:骨架创建,那块打勾,删除多余xml里的行,main里directory创建缺的java和resources <!--设置jdk--><properties> <maven.compiler.source>11</maven.compiler.source> <maven.compiler.targe 阅读全文
posted @ 2023-03-03 19:58 大灰狼21 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-03-03 14:53 大灰狼21 阅读(14) 评论(0) 推荐(0) 编辑
摘要:右边的数据库都已配置好了,包括时区GMT,connection测试也可以,但是写select语句就是不提示,字是黑。 解决方法:https://www.cnblogs.com/jpfss/p/11051015.html 写完select后,alt+enter,选mysql就可以了,我也把SQL Di 阅读全文
posted @ 2023-03-03 08:57 大灰狼21 阅读(149) 评论(0) 推荐(0) 编辑
摘要:Server returns invalid timezone. Need to set 'serverTimezone' property. 解决方法: https://blog.csdn.net/weixin_47068543/article/details/124142155 阅读全文
posted @ 2023-03-02 19:49 大灰狼21 阅读(15) 评论(0) 推荐(0) 编辑
摘要:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project maven-demo: Compilation failure 点这个comp 阅读全文
posted @ 2023-03-02 18:29 大灰狼21 阅读(15) 评论(0) 推荐(0) 编辑
摘要:mybatis就是解决原来用jdbc需要写对象里的多个属性的费时操作,导入一堆配置文件让增删改查代码变简单 阅读全文
posted @ 2023-03-02 09:48 大灰狼21 阅读(9) 评论(0) 推荐(0) 编辑
摘要:获取数据库连接,传统的浪费时间和资源,使用连接池复用节约时间资源 阅读全文
posted @ 2023-03-01 17:11 大灰狼21 阅读(11) 评论(0) 推荐(0) 编辑
摘要:' or '1'='1 相当于比普通stmt多了个预编译,预编译?,然后把值替换?即可,不用每次执行整条sql语句,加快速度 需要在sql后加上&useServerPreStmts=true开启预编译 阅读全文
posted @ 2023-03-01 08:10 大灰狼21 阅读(11) 评论(0) 推荐(0) 编辑
摘要:一对双引号/一对加号/一个参数 阅读全文
posted @ 2023-03-01 07:45 大灰狼21 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-02-28 21:05 大灰狼21 阅读(11) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示