摘要: 检查是否存在插件:spring boot assistant,spring boot File->Setting; plugins,查看右侧“Installed” 不存在则安装spring boot assistant 默认插件中如果没有找到spring boot assistant,安装sprin 阅读全文
posted @ 2024-05-02 12:00 le.li 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 刚刚新建的springboot项目,启动日志显示成功了,但是服务却自动停了。 一种常见的问题是缺少必要的依赖项:Spring Boot Web 添加maven依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId 阅读全文
posted @ 2024-05-02 11:35 le.li 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 安装前: 安装: Fle->Setting plugin->marketplace 搜索“”maven helper“”,点击install 安装后,下方多了“Dependency Analyzer”,支持查看全部依赖、依赖冲突,依赖树,过滤 阅读全文
posted @ 2024-05-02 11:21 le.li 阅读(197) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript"> <!-- 方法定义 --> function addFunctionToTable(value, row, index) { return [ '<button id="preview" type="button" class="btn 阅读全文
posted @ 2024-05-01 17:39 le.li 阅读(91) 评论(0) 推荐(0) 编辑
摘要: script中 <script> var contextPath= [[@{/}]]; </script> html中,以form为例,将form前面添加"th:",其中“/account/index”为controller里定义的路径 <form id="loginForm" th:action= 阅读全文
posted @ 2024-04-29 00:29 le.li 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 添加环境见“VUE:vite添加环境变量(一)” loadEnv适用于构建时 详细见:“VUE:vite添加环境变量(一)” import.meta.env适用于运行的脚本中 举例: <script> export default { methods: { test() { console.log( 阅读全文
posted @ 2024-04-16 00:06 le.li 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 新建'.env' (和vite.config.js同一个路径下) VITE_APP_API_URL=http://localhost vite.config.js import { defineConfig, loadEnv } from 'vite' export default defineCo 阅读全文
posted @ 2024-04-15 23:39 le.li 阅读(95) 评论(0) 推荐(0) 编辑
摘要: request to https://registry.npm.taobao.org/anymatch failed, reason: certificate has expired 提示是证书过期了,把严格校验证书的去掉 解决: npm config set strict-ssl false 阅读全文
posted @ 2024-01-28 18:09 le.li 阅读(640) 评论(0) 推荐(0) 编辑
摘要: @RestControllerAdvice @Slf4j public class GlobalRestExceptionHandler { @ExceptionHandler(value = BusinessException.class) public String handleExceptio 阅读全文
posted @ 2023-07-11 02:04 le.li 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 方式一,添加HttpMessageConverters实例 import com.alibaba.fastjson.support.config.FastJsonConfig; import com.alibaba.fastjson.support.spring.FastJsonHttpMessag 阅读全文
posted @ 2022-11-01 23:41 le.li 阅读(161) 评论(0) 推荐(0) 编辑