spring-boot-api-project-seed icon indicating copy to clipboard operation
spring-boot-api-project-seed copied to clipboard

:seedling::rocket:一个基于Spring Boot & MyBatis的种子项目,用于快速构建中小型API、RESTful API项目~

Results 106 spring-boot-api-project-seed issues
Sort by recently updated
recently updated
newest added

`String url = "http://localhost:8080/user";//473 255 Map params = new HashMap(); String encode = "UTF-8"; params.put("username", "rcyj_20180"); params.put("password", "78sexwqeqw"); params.put("sex", "1"); params.put("nickName", "战国策"); params.put("openId", "51jxty&rsv_dl"); params.put("receiverCity", "深圳"); params.put("receiverDistrict", "南山区"); params.put("receiverAddress", "深圳市科技园");...

### 如题,获取的结果集里,如果字段有Null值,字段会被丢弃,参考[官网配置](http://www.mybatis.org/mybatis-3/zh/configuration.html)项 `callSettersOnNulls ` 同样不起作用,怎么玩下去啊... 1. 修改了MybatisConfigurer文件,加载 mybatis 配置文件 `factory.setConfigLocation(new ClassPathResource("mybatis-config.xml"));` 2. 增加配置项 `` 3. mybatis 版本是3.4.5,按道理是支持这个属性值。

tableConfiguration.setGeneratedKey(new GeneratedKey("id", "Mysql", true, null)); 跟进去这个不支持oracle

![b17b727209f68da2f3b744077914b98b](https://user-images.githubusercontent.com/42147447/43724301-2f51d446-99cc-11e8-80bf-d91e11375c7e.jpg) ![53b6f828356cbb89260c0981cb855883](https://user-images.githubusercontent.com/42147447/43724305-31d8c5d0-99cc-11e8-919a-97234c539521.jpg) ![08751862-ef53-4369-b8bd-9500999931c0](https://user-images.githubusercontent.com/42147447/43724343-4e38f02e-99cc-11e8-9583-dbbd348943cc.png) 这个是怎么回事,插入到数据库就识别不了了 ![b4163c94-35d3-4c77-99f3-11c7275e5d29](https://user-images.githubusercontent.com/42147447/43724439-8a975ff6-99cc-11e8-83f8-195e36e8c7aa.png)

需求 mapperxml编写了一个sql方法 希望同时生成Controller Service Dao三层的4个调用方法,不是生成文件 是在各自的文件里面新增方法 这样效率就是真的高了 因为自定义sql情况更多

按照作者当前的做法,在src/main/resources/mapper目录是必须存在的,启动才能成功。 但我们有些时候,项目比较简单,不需要写XxxMapper.xml这样的文件,而是使用注解的方式如。 ``` package com.company.project.dao; import com.company.project.core.Mapper; import com.company.project.model.User; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; public interface UserMapper extends Mapper { @Select("SELECT username FROM user WHERE id = #{id}") public String selectUsernameById(@Param("id")...

mybatis.configuration.mapUnderscoreToCamelCase=true mybatis.configuration.autoMappingBehavior=PARTIAL 添加这两个配置后无效