
SSM
乐事原味~
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
基于Maven-SSM的项目(测试项目)
环境:IDEA 2018 2.2 JDK1.8 Tomcat7 MySQL 5.7 apache-maven-3.5.4 目录1.新建Maven项目2.新建所需文件夹3.配置xml文件...原创 2018-09-13 15:38:46 · 1405 阅读 · 0 评论 -
ssm:后台跳转页面,使用session.setAttribute(key,value)传值到前台,使用js获取值
后台返回值: @GetMapping("/flight/{flight}/{deptime}") public Object toFlightList(@PathVariable String flight,@PathVariable String deptime, HttpSession session){ session.setAttribute(key,va...原创 2019-03-19 17:07:20 · 4798 阅读 · 0 评论 -
java:发送邮件
一、pom.xml <!-- 添加邮件发送的依赖 --><dependency> <groupId>org.springframework</groupId> <artifactId>spring-context-support</artifactId> <version>5.0.0.RELEASE&原创 2019-03-10 23:12:11 · 347 阅读 · 0 评论 -
SSM:前端传值到后台,保存失败,报错JSON parse error
org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Unrecognized token 'planeName': was expecting ('true', 'false' or 'null'); nested exception is com.fasterxml.jacks...原创 2019-03-01 21:54:19 · 5370 阅读 · 1 评论 -
SSM项目:Serivce层@Value()注解读取properties文件为null,Controller层却可以
在Spring-MVC的配置中,扫描properties文件配置如下<context:property-placeholder location="classpath:project.properties" file-encoding="UTF-8" />在controller层和service层注解使用: @Value("${uploadPath.path}")...原创 2019-02-26 10:27:02 · 1457 阅读 · 0 评论 -
myBatis-plus:驼峰配置没有生效
在Spring-Mybatis.xml中配置的驼峰转换如下<bean id="globalConfig" class="com.baomidou.mybatisplus.entity.GlobalConfiguration"> <!-- AUTO->`0`("数据库ID自增") INPUT->`1...原创 2019-02-19 23:57:16 · 14740 阅读 · 2 评论 -
MyBatis:java.lang.UnsupportedOperationException异常解决方案
出现错误:sql语句:<select id="selectAllUser" resultType="java.util.List"> select * from users </select>对应的Dao接口:List<UsersEntity> selectAllUser();正确的写法:将sql语...原创 2019-12-24 13:26:20 · 3671 阅读 · 1 评论 -
SSM框架:后端controller方法的参数为对象,报Unrecognized token 'name': was expecting ('true', 'false' or 'null')
Unrecognized token 'name': was expecting ('true', 'false' or 'null')参数有问题,不能解析成json对象ajax提交添加下面两行代码contentType:'application/json;charset=utf-8'data:JSON.stringify(数据) var allData = { ...原创 2019-02-18 17:14:37 · 1538 阅读 · 0 评论 -
SSM:后台接受map参数
1、获取表单数据//获取数据 function getAllData(){ let orderItem=[]; $(".passenger").each(function(index,ela){ let passenger = {}; const _this = $(ela); p...原创 2019-03-24 00:44:27 · 2042 阅读 · 0 评论