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

用了一年多以前一直好好的,突然就变慢了, 其他的电脑都没问题, 就这台有问题, 这台电脑启动其他spring boot的也没问题 ``` "C:\Program Files\Java\jdk1.8.0_151\bin\java.exe" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:55675,suspend=y,server=n -Drebel.base=C:\Users\gz000069\.jrebel -Drebel.env.ide.plugin.version=7.1.5 -Drebel.env.ide.version=2018.1.1 -Drebel.env.ide.product=IU -Drebel.env.ide=intellij -Drebel.notification.url=http://localhost:17434 -agentpath:C:\Users\gz000069\.IntelliJIdea2018.1\config\plugins\jr-ide-idea\lib\jrebel6\lib\jrebel64.dll -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=55674 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=localhost -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -javaagent:C:\Users\gz000069\.IntelliJIdea2018.1\system\captureAgent\debugger-agent.jar=file:/C:/Users/gz000069/AppData/Local/Temp/capture.props -Dfile.encoding=UTF-8 -classpath "C:\Program...

![image](https://user-images.githubusercontent.com/37978376/53678469-77bee300-3cfa-11e9-9e8f-084bcdd5fa00.png)

Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long

不管怎么尝试都是这种错误。。相同的目录在另一个项目下却跑的很好,不解。 我的目录结构是这样的。 ![default](https://user-images.githubusercontent.com/16935571/53309861-2c18cd80-38e5-11e9-9344-877999938eaf.png)

rest controller中主键查询默认是Integer,但是model主键有可能是string byte long等类型,使用时会报类型转换错误 这种情况现在是怎么处理的? 生成代码后手动修改controller的id类型吗?

![image](https://user-images.githubusercontent.com/17981095/40707213-9a3ce050-6422-11e8-8aa5-d180f6c1dd03.png)

Mapper.xml如何生成 insertSelective、updateSelective方法,