
springboot mybatis
玉劭
爱生活,爱编程
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
也谈Spring boot + mybatis
打个目录序列,接着补;1、开发环境的选择 intellij idea,这个没有什么好说的,个人习惯,要是喜欢用eclipse也一样。个人是也做android,用adroid studio,顺手把eclipse也改成intellij idea2、 hello world3、发布与部署:4、测试参考:mock测试spring boot的CRUD服务 http原创 2017-07-12 14:58:45 · 210 阅读 · 0 评论 -
博客 练习
1、spring.boot.admin.context-path 配置API的前缀路径原创 2017-07-18 15:53:08 · 255 阅读 · 0 评论 -
spring boot +mybatis 项目结构目录之我见 配置文件
root-||—src|——main|————java|—————包名|——————controller (web) 一般人叫做controller控制器,相当于struts中的action。springmvc就是在这里发挥作用的,|——————dao 数据访问层 为什么没有daoImpl,mybatis,可以直接在配置文件mappe原创 2017-07-14 14:19:55 · 3117 阅读 · 0 评论 -
mybatis 一次执行多条SQL
Xml代码 insert id="insertUser" parameterType="com.test.model.User"> insert into user (id,email,name,phone,status) values(#{id,jdbcType=INTEGER},#{email,jdbcType=VARCHAR},#{nick,jdbc原创 2017-08-08 14:28:11 · 179 阅读 · 0 评论 -
@RequestParam @RequestBody @PathVariable 等参数绑定注解详解
简介:handler method 参数绑定常用的注解,我们根据他们处理的Request的不同内容部分分为四类:(主要讲解常用类型)A、处理requet uri 部分(这里指uri template中variable,不含queryString部分)的注解: @PathVariable;B、处理request header部分的注解: @RequestHeader, @Co原创 2017-08-18 13:59:32 · 1031 阅读 · 0 评论 -
使用spring boot 修改静态资源(js,html) 和 java 不能立即生效,必须重启的解决方案
1、添加dependency> groupId>org.springframework.bootgroupId> artifactId>spring-boot-devtoolsartifactId> version>1.5.4.RELEASEversion> optional>trueoptional>dependency>2、applicatio转载 2017-07-14 17:12:20 · 9164 阅读 · 1 评论 -
tomcat 同时部署多个项目 srpingboot, 实时查看日志 tail -f catalina.out
17-Aug-2017 15:00:21.967 严重 [localhost-startStop-2] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start com原创 2017-08-17 15:22:26 · 1846 阅读 · 0 评论 -
spring boot 输出日志用 logback 杂谈
1、输出日志用 logback http://www.cnblogs.com/warking/p/5710303.htmllogback的使用和logback.xml详解一、logback的介绍Logback是由log4j创始人设计的另一个开源日志组件,官方网站: http://logback.qos.ch。它当前分为下面下个模块: logback-core:其它两个模块的原创 2017-09-29 14:14:59 · 171 阅读 · 0 评论