Springboot
丶村草
这个作者很懒,什么都没留下…
展开
-
Springboot整合Mybatis-plus实战
spring-boot-mybatis-pluspom.xml<!-- mybatis-plus --> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId>...原创 2020-05-21 14:56:17 · 345 阅读 · 0 评论 -
Springboot整合 mybatis-generator
1.pom.xml文件中 生成依赖<plugin> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-maven-plugin</artifactId> <version>1.3.2</version>原创 2018-05-23 11:42:19 · 468 阅读 · 0 评论 -
Springboot引入第三方jar包,maven打包报错的问题..
有时候在项目开发中,需要很多依赖的 jar 包,其中依赖的 jar 包也会依赖其他的 jar 包,导致jar 包的管理很容易不全。 如果使用Maven默认的打包方式的话,打成项目jar包后,会导致其他第三方jar包无法找到的异常信息,报错ClassNotFoundException。 以下有两种方法可以规避这个问题。 一,在pom.xml文件中配置,将依赖的jar包放到指定的文件夹中...原创 2018-10-16 16:51:20 · 3417 阅读 · 0 评论 -
Springboot整合webSocket报错,java.lang.IllegalStateException: Failed to register @ServerEndpoint class
楼主也是从网上搜了一个,然后使用过程中没啥问题,打包出错。WebSocketConfig此处需要注意,仅使用应用文件启动项目才使用此配置。如果打包无需进行此步配置,否则会产生java.lang.IllegalStateException:无法注册@ServerEndpoint类的错误。//使用tomcat启动无需配置@Componentpublic class WebSocke...原创 2018-10-16 17:19:21 · 22284 阅读 · 13 评论