Git Product home page Git Product logo

hh_study's Introduction

HRS3.0使用springboot整合mysql开发了增删改查四个后端接口,使用Swagger UI模拟前端进行接口测试。 踩过的坑如下:

1.SpringBoot启动提示找不到或无法加载主类 解决:rebuild项目

2.报错The server time zone value '�й���׼ʱ��' is unrecognized or represents more than one time zone. 原因:mysql时区问题 解决:在MySQL的URL后面加上“?serverTimezone=UTC” 例如:jdbc:mysql://localhost:3306/spdb?serverTimezone=UTC&characterEncoding=utf-8

3.swagger与springboot版本不一致 解决:springboot2.3.1对应swagger2.9.1

4.No identifier specified for entity 解决:model的主键字段加 @Id 注释

5.template might not exist or might not be accessible by any of the configured Template Resolvers 原因:在controller层请求处理完了返回时,没有使用@RestController或@ResponseBody而返回了非json格式 解决:使用@RestController注解

hh_study's People

Contributors

jockyethan avatar wenrenjie1994 avatar fletcherjiang avatar lin-ziyi avatar xiexiaotong avatar leon-cn avatar yearmonster avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.