![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javaweb
Java使我强大
这个作者很懒,什么都没留下…
展开
-
ssm乱码问题
1.解决get请求乱码server.xml设置 URIEncoding=utf-82.改变Idea配置,idea安装目录下bin目录下在以下两个文件下加入:-Dfile.encoding=utf-83.4原创 2020-05-17 12:55:57 · 194 阅读 · 0 评论 -
font-awesome的使用方法及可能遇到的问题
font-awesome的使用方法及可能遇到的问题官网下载font Awesome,解压文件目录如下:新建一个html文件将这两个文件夹复制到项目中在html中引入文件:在body中写入下面的语句:<body><i class="fa fa-qq"></i></body>显示如下:问题一:显示不出图标1.一定要加上...原创 2019-07-28 16:07:42 · 5975 阅读 · 2 评论 -
Maven项目部署到tomcat无法启动
自动生成war包时没有加入servlet.jar和jsp.jar虽然tomcat有这些包但是这些包也要导入原创 2019-07-21 17:39:05 · 1150 阅读 · 0 评论 -
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
解决方法一:https://blog.csdn.net/liangshilin/article/details/81433486解决方法二:检查注入类是否正确,要注入接口错误方式:@Resourceprivate AbcServiceImpl abcService;正确方式:@Resourceprivate AbcService abcService;...原创 2019-06-25 21:03:59 · 1623 阅读 · 0 评论 -
jsp跳转前alert提示
请求转发:在url中加入alert内容重定向:在js中写:原创 2019-05-08 17:03:25 · 3469 阅读 · 1 评论 -
Unable to open debugger port (127.0.0.1:54667): java.net.SocketException "socket closed"
改掉端口就好了原创 2019-04-19 17:02:30 · 1221 阅读 · 0 评论 -
idea和eclipse路径问题
IDEA和Eclipse编译器影响IDEA中Idea 运行设置中有个Aplication context设置,这里设置的路径就是端口后面跟的路径,如果使用根路径配置文件就要加上这个路径。例:设置Aplication contex:MyAPP_1http://localhost:8080/MyAPP_1/…如果Aplication contex设置为空http:/...原创 2019-04-15 14:34:48 · 1365 阅读 · 0 评论 -
IDEA连接失败问题
[2019-04-11 08:25:40,268] Artifact prj2:war exploded: Artifact is being deployed, please wait...11-Apr-2019 20:25:40.667 警告 [RMI TCP Connection(2)-127.0.0.1] org.apache.tomcat.util.descriptor.web.Web...原创 2019-04-11 20:31:41 · 2980 阅读 · 0 评论 -
struts2访问Servlet API的三种方式
ActionContext访问servletlogin.jsp<form action="ActionContextTest" method="post"> 用户名<input type="text" name="name"> <br> 密码:<input type="password"原创 2019-02-11 12:25:31 · 216 阅读 · 0 评论 -
IDEA:将WEB-INF\lib下的Jar包添加到项目中
打开Project Structure【可以使用快捷键:Ctrl+Alt+Shift+S】左侧选中Modules,在Dependecies中,点击右侧“+”号,选择JARS or directories...选择WEB-INF\lib下的Jar包添加左侧选中Artifacts,然后点击-项目名:war exploded ,在Avaliable Elements中将刚刚添加的JAR包put i...转载 2019-02-07 18:03:32 · 1236 阅读 · 0 评论 -
Unused import statement
今天发现了一个问题我使用了HttpServletRequest但是导入的包显示Unused import statement后面就不能使用HttpServletRequest的对象,检查后是servlet-api.jar包没有导入,导入后解决了问题...原创 2019-02-03 19:02:46 · 1857 阅读 · 0 评论 -
org.apache.catalina.core.StandardContext.startInternal One or more Filters failed to start. Full det
这个问题我找了网上很多的方法都不管用,最后还是解决了我用的是struts2 2.5 tomcat 8.5开始的时候报错如下org.apache.catalina.core.StandardContext.startInternal One or more Filters failed to start. Full details will be found in the appropr...原创 2019-02-02 22:19:56 · 3143 阅读 · 0 评论 -
严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.tomcat.util.modeler.BaseModelMBean.invoke Exception
这个问题找了好久,最后发现web.xml文件配置错了,如果遇到这样的问题可以先找web.xml文件检查一下少了/原创 2019-02-02 15:27:42 · 30536 阅读 · 12 评论