
springboot
springboot开发
梦灯
计算机软件很有趣,我很喜欢。
展开
-
springboot图片上传与回显
一,文件配置server: port: 8080spring: servlet: multipart: max-file-size: 128MB max-request-size: 128MB二,前台界面 2.1上传界面: <form method="POST" enctype="multipart/form-data" actio...原创 2018-07-05 00:22:41 · 10740 阅读 · 3 评论 -
springboot自定义国际化i18n
一,新建一个springboot项目:和前一篇拦截器交叉,新增的是MyLocalResolver.java二,文件配置i18n文件夹: login.properties:默认中文login.btn=\u767B\u5F55login.password=\u5BC6\u7801login.username=\u7528\u6237\u540D login_en_US....原创 2018-06-30 13:46:22 · 6030 阅读 · 0 评论 -
springboot自定义拦截器
一,新建一个springboot项目二,配置文件gradle:compile('org.springframework.boot:spring-boot-starter-thymeleaf')compile('org.springframework.boot:spring-boot-starter-web')yml:server: port: 8080spring: thymeleaf...原创 2018-06-30 12:58:14 · 1861 阅读 · 0 评论 -
springboot搭建mybatis注解版----连接mysql
1,新建项目2,配置文件 Gradle文件:compile('org.springframework.boot:spring-boot-starter-web')compile('org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.2')runtime('mysql:mysql-connector-java')// https...原创 2018-06-30 09:58:53 · 394 阅读 · 0 评论 -
springboot搭建mybatis配置文件版----连接mysql
一,创建项目 创建一个springboot项目,使用Gradle依赖,添加的依赖为:compile('org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.2') runtime('mysql:mysql-connector-java') // https://mvnrepository.com/artifact/com.alib...原创 2018-06-30 09:29:03 · 8872 阅读 · 0 评论