摘要: 生命周期 App生命周期 App(Object object) 注册小程序,接受一个Object参数,用来指定小程序的生命周期回调等。 App()必须在app.js中调用且只能调用一次,否则会出现无法预期的后果。 参数 Object object | 属性 | 类型 | 默认值 | 必填 | 说明 阅读全文
posted @ 2022-10-14 15:54 Texley 阅读(156) 评论(0) 推荐(0)
摘要: ∫lnxdx = xlnx-x 阅读全文
posted @ 2022-10-06 20:25 Texley 阅读(159) 评论(0) 推荐(0)
摘要: 今天登录上博客发现好家伙资源链全挂了,进去一看发现是证书到期了,但是我回服务器查看证书发现证书已经更新而且是有效状态,清缓存一类的都尝试过了,依旧不行,然后网上找到了一个解决思路,突然想到可能是cdn没有更新证书,果断回cdn发现果然证书没有更新,上传新证书,问题解决。 阅读全文
posted @ 2022-08-14 19:26 Texley 阅读(127) 评论(0) 推荐(0)
摘要: 文件配置 .vscode\c_cpp_properties.json { "configurations": [ { "name": "windows-gcc-x64", "includePath": [ "${workspaceFolder}/**" ], "compilerPath": "E:/ 阅读全文
posted @ 2022-07-22 19:21 Texley 阅读(215) 评论(0) 推荐(0)
摘要: 异常处理 使用异常处理器进行异常处理 @RestControllerAdvice public class ProjectExceptionAdvice { @ExceptionHandler public R doException(Exception ex){ ex.printStackTrac 阅读全文
posted @ 2022-07-14 18:15 Texley 阅读(32) 评论(0) 推荐(0)
摘要: 我写了一个简单的路由如下: import { createRouter, createWebHistory } from 'vue-router' const routes = [ { path: '/login', name: 'Login', component: () => import('@ 阅读全文
posted @ 2022-07-14 18:14 Texley 阅读(1748) 评论(0) 推荐(0)
摘要: 业务层开发 使用通用接口IService<T>快速开发Service public interface IBookService extends IService<Book> { } 使用通用实现类ServiceImpl<M,T>快速开发ServiceImpl @Service public cla 阅读全文
posted @ 2022-07-10 23:52 Texley 阅读(79) 评论(0) 推荐(0)
摘要: 以下记录皆基于MybatisPlus。 查看标准日志 标准日志可以查看sql执行记录,在配置文件中配置 mybatis-plus: configuration: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl 效果 分页查询 定义分页对象I 阅读全文
posted @ 2022-07-09 23:20 Texley 阅读(56) 评论(0) 推荐(0)
摘要: 在main.js导入element-plus的时候不仅要import ElementPlus from 'element-plus'还要导入css文件import 'element-plus/dist/index.css',我就是没有导入css文件导致显示不正确。 导入前: 导入后: 阅读全文
posted @ 2022-07-08 10:53 Texley 阅读(1998) 评论(1) 推荐(0)
摘要: 路由重定向 在创建路由时可以用redirect参数指定默认访问路径 写法1 const routes = [{ path: "/", component: () => import("../components/root.vue"), redirect: to => { return "user1" 阅读全文
posted @ 2022-07-08 08:47 Texley 阅读(42) 评论(0) 推荐(0)