- 博客(13)
- 收藏
- 关注
转载 SpringBoot整合JDBC
1.引入maven依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> <depende...
2019-06-25 13:45:00
138
转载 springBoot报错Exception in thread "main" java.lang.NoClassDefFoundError: ch/qos/logback/classic/Level...
解决办法: 如果使用的是阿里云 maven 镜像,在这会有找不到最新 Springboot 相关包的问题,请把加速镜像指向华为云: <mirror> <id>huaweicloud</id> <mirrorOf>*</mirrorOf> <url>...
2019-06-24 15:30:00
4216
转载 java.lang.ClassCastException: java.util.ArrayList cannot be cast to com.github.pagehelper.Page page...
报错信息: 严重: Servlet.service() for servlet [springmvc] in context with path [] threw exception [Request processing failed; nested exception is java.lang.ClassCastException: java.util.ArrayList ca...
2019-06-09 15:43:00
1301
转载 mysql 设置默认id自增开始下标
alter table 表名 AUTO_INCREMENT 此处写你想让id从几开始增长的数字; 转载于:https://www.cnblogs.com/hwxxbc/p/10598190.html
2019-04-10 15:00:00
1128
转载 PageHelper分页工具
<a>共${page.total}件商品</a>    <a>共${page.pages}页</a>    <a>当前第${page.pageNum}页</a>  &...
2019-04-10 14:59:00
88
转载 springmvc文件上传下载
注意事项: 客户端提交方式必须为POST提交 提交表单需要添加 enctype=”multipart/form-data” 属性 上传需要jar包 commons-fileupload.jar commons-io.jar 文件上传: 1.需要在springmvc配置文件中添加: <bean id="multipartResolver" cl...
2019-04-10 14:57:00
102
转载 excel表格的导入导出
将数据导出为excel表格: Maven依赖: <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>3.9</version> </dependency&...
2019-04-02 21:41:00
129
转载 当传入数据只有一个时mybatis中<if>判断会出现There is no getter for property named 'subjectId' in 'class java.lang.Int...
https://www.cnblogs.com/y-z-q/p/5734029.html 转载于:https://www.cnblogs.com/hwxxbc/p/10636736.html
2019-04-01 15:36:00
240
转载 jQuery实现全选全不选
当点击全选框时,触发一个方法,将类名为goods的选择框的状态变为和当前全选框一样。 $("[name='goods']").prop("checked", this.checked); 转载于:https://www.cnblogs.com/hwxxbc/p/10553445.html...
2019-03-18 17:18:00
164
转载 SSM整合案例
使用IDEA整合SSM spring核心配置文件:beans_core.xml/applicationContext.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="htt...
2019-03-17 20:06:00
118
转载 spring解决乱码
spring提供的工具类解决乱码问题 在web.xml配置中添加如下代码: <!--乱码处理--> <filter> <filter-name>encodingFilter</filter-name> <filter-class> org.sprin...
2019-03-15 14:16:00
115
转载 mybatis反向工程
首先创建一个test类: 在main方法里写上如下代码: List <String> warnings = new ArrayList <String>(); boolean overwrite = true; File configFile = new File("generator.xml"); ConfigurationParser cp = ...
2019-03-06 23:40:00
93
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人