![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java Web
半零落
少年何惧岁月长
展开
-
二维数组类型的el表达式
<table><c:forEach begin="0" end="2" varStatus="sta"> <tr><c:forEach begin="0" end="2" varStatus="status"> <td>1</td> <td>${userText[sta.index][status.index].sex}</td></c:forEach> <原创 2020-12-29 09:46:55 · 227 阅读 · 0 评论 -
Mybatis自动生成Dao,Mapper,entity
mybatis-generator.xml<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd"><generatorConfi原创 2020-12-09 14:51:41 · 236 阅读 · 0 评论 -
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
接口名和映射文件名要一致,不然也会找不到,如dao层有接口UserDao,那么映射文件也叫UserDao.xml原创 2020-11-19 19:23:52 · 85 阅读 · 0 评论 -
IDEA模块化开发出现错误,无法加载或者找不到类的情况
方法一:改主外层的iml文件: <content url="file://$MODULE_DIR$"> <excludeFolder url="file://$MODULE_DIR$/target" />内容只留下这句 </content> ```方法二:对模块进行单独maven打包原创 2020-10-09 20:14:48 · 795 阅读 · 0 评论 -
org.springframework.beans.factory.UnsatisfiedDependencyException:
java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:124) at org.springframework.test.context.support.D原创 2020-09-13 16:22:05 · 304 阅读 · 0 评论 -
HTTP状态 404 - 未找到 类型 状态报告 描述 源服务器未能找到目标资源的表示或者是不愿公开一个已经存在的资源表示。
<form action="/login" method="post">去掉"/"即可原创 2020-09-01 12:15:52 · 19428 阅读 · 0 评论 -
maven 镜像
<mirrors> <!-- mirror | Specifies a repository mirror site to use instead of a given repository. The repository that | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used | for inheritanc.原创 2020-08-27 15:02:41 · 121 阅读 · 0 评论 -
Please refer to D:\java编程\Hellofriend\target\surefire-reports for the individual test results
在maven 工程的pom.xml文件中加入:<build><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-surefire-plugin</artifactId><configuration><testFailureIgnore>true</testFailureIgn原创 2020-08-09 08:02:00 · 12557 阅读 · 2 评论 -
如何一次性设置通过maven创建的工程的jdk版本 The superclass “javax.servlet.http.HttpServlet“ was not found
打开setting.xml文件,在<profiles></profiles>标签加入: <profile> <id>jdk-1.8</id> <activation> <activeByDefault>true</activeByDefault> <jdk>1.8</jdk> </...原创 2020-08-08 18:27:49 · 116 阅读 · 0 评论 -
org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type
查看spring-context-mybatis.xml文件: <bean class="org.mybatis.spring.mapper.MapperScannerConfigurer"> <property name="basePackage" value="com.dghjs.My.Shop.web.admin.dao" /> </bean> ``` ```xml <property name="b原创 2020-09-16 12:16:57 · 115 阅读 · 0 评论