Springboot
未兆
这个作者很懒,什么都没留下…
展开
-
使用@RestController 没有用
新建项目,加入@RestController 但页面提示Whitelabel Error Page这是会报错的结构这是修改后的目录结构,这样就能扫描到了这是加入注解的代码package com.tww.study.controller;import org.springframework.web.bind.annotation.RequestMapping;import or...原创 2019-10-31 09:28:31 · 3333 阅读 · 1 评论 -
学习Springboot遇到的一些坑
IDEA 上中文乱码的问题,解决方案记录1.读取properties文件中的中文乱码通过如下的方法 注:勾上之后,最好把文件先备份后删掉,再新建一次。建议把IDEA的编码格式都配置成UTF-8 2.读取数据库中的中文乱码 检查数据库的字符集编码格式,改成utf8 检查数据连接的url加入characterEncoding=urf8 jdbc:mysql://127.0....原创 2018-03-14 09:49:08 · 1248 阅读 · 0 评论