
springboot
springboot项目练习
LetsStudy
The growth of age will not be a hindrance to study.
展开
-
1.4 搭建springboot后端问题记录
1、mysql版本报错修改mysql版本为8.0.12修改时区set global time_zone='+8:00';//修改全局时区flush privileges;//立即生效2、tomcat依赖问题将这两个依赖给注释掉,问题得以解决3、驱动废弃问题更新application.properties,将spring.datasource.driver-class-name=com.mysql.jbdc.Driver修改spring.datasource原创 2022-04-11 10:57:41 · 922 阅读 · 0 评论 -
1.3 springboot后端项目搭建
1、新建项目2、com/example/demo/pojo/Userpackage com.example.demo.pojo;public class User { int id ; String username; String password; public int getId() { return id; } public void setId(int id) { this.id = id;.原创 2022-04-08 14:21:44 · 316 阅读 · 0 评论 -
1.2 vue3项目问题记录
1、axios全局配置vue2中使用的是Vue.prototype.$axios = axios然后在组件中使用this调用this.$axiosvue3中没有this,可以有两种方式绑定全局app.config.globalProperties.$axios = axios在组件中使用getCurrentInstance()方法获取实例后调用const internalInstance = getCurrentInstance().appContext.config原创 2021-01-26 19:13:24 · 1085 阅读 · 0 评论 -
1.1 搭建vue项目
vite:https://vitejs.cn/guide/#community-templates一、搭建vue项目npm init vite@latest demo -- --template vue-tsnpm install npm run dev二、安装依赖package.json"dependencies": { "axios": "^0.26.1", "element-plus": "^2.1.7", "vue": "^3.2.25"原创 2021-01-20 11:52:56 · 448 阅读 · 0 评论