会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
未来可期_Durant
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
10
11
12
13
14
15
16
17
18
···
28
下一页
2021年8月2日
SpringBoot|web应用开发-CORS跨域资源共享
摘要: 一、什么是跨域 浏览器从一个域名的网页去请求另一个域名的资源时,域名、端口、协议任一不同,都是跨域 域名: 主域名不同 http://www.baidu.com/index.html -->http://www.sina.com/test.js 子域名不同 http://www.666.baidu.
阅读全文
posted @ 2021-08-02 11:04 未来可期_Durant
阅读(121)
评论(0)
推荐(0)
2021年8月1日
IDEA|自动生成序列化ID
摘要: 一、设置步骤 File -> Settings -> Editor -> Inspections -> 搜索 Serialization issues ,找到 Serializable class without 'serialVersionUID' ->打上勾,Apply->OK 二、新建文件 p
阅读全文
posted @ 2021-08-01 23:02 未来可期_Durant
阅读(1181)
评论(0)
推荐(0)
2021年7月29日
SpringBoot|自定义业务异常使用
摘要: 代码定义 package com.example.demo.common; public class ServiceException extends RuntimeException { private static final long seriaVersionUID = 1L; private
阅读全文
posted @ 2021-07-29 00:24 未来可期_Durant
阅读(138)
评论(0)
推荐(0)
2021年7月28日
SpringBoot|常用配置介绍
摘要: 前言 SpringBoot的默认配置文件格式是.properities,同时也支持***.yaml或***.yml 1、指定启动的环境 spring: profiles: active: dev 2、给springboot服务命名(配合springcloud时非常有用) spring: applic
阅读全文
posted @ 2021-07-28 23:48 未来可期_Durant
阅读(51)
评论(0)
推荐(0)
SpringBoot|多环境配置
摘要: 一、idea配置文件 application.yml spring: profiles: active: dev application-dev.yml server: port: 8081 application-test.yml server: port: 8082 application-ua
阅读全文
posted @ 2021-07-28 23:14 未来可期_Durant
阅读(95)
评论(0)
推荐(0)
2021年7月26日
SpringBoot|其他常用注解
摘要: Componment:声明为springboot的bean Repository:用于dao层的bean Autowired:用于向一个bean注入其他的bean Service:用于service层的bean Configuration:用于声明springboot的配置文件类 Value("${
阅读全文
posted @ 2021-07-26 23:11 未来可期_Durant
阅读(40)
评论(0)
推荐(0)
SpringBoot|以jar包形式运行springboot服务
摘要: 一、检查pom文件是否有打jar包的插件 二、把springboot服务打成jar包 mvn clean install -U -DskipTests 三、使用命令行启动springboot服务 java -jar demo-0.0.1-SNAPSHOT.jar
阅读全文
posted @ 2021-07-26 22:57 未来可期_Durant
阅读(198)
评论(0)
推荐(0)
2021年7月25日
SpringBoot|restfull风格的接口实现方式
摘要: SpringBootApplication:springboot主类,用来加载springboot各种特性 RsetController:Spring会转换返回值并自动将其写入HTTP响应 RequestMapping:用于类和方法,在方法级别时,用于处理HTTP的各种方法 RequestBody:
阅读全文
posted @ 2021-07-25 18:45 未来可期_Durant
阅读(136)
评论(0)
推荐(0)
2021年7月24日
Vue|[Vue warn]: Unknown custom element: <v-car> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
摘要: 一、问题现象 最近在练习vue项目时,遇到这样的一个问题,很是奇怪,编译是ok,点击也能弹窗,但还是会报错 vue源码 <template> <div> <template> <v-tabs :value="0" background-color="primary"> <v-tab @click="
阅读全文
posted @ 2021-07-24 20:01 未来可期_Durant
阅读(917)
评论(0)
推荐(0)
2021年7月23日
Vue|VUE router 导航重复点击报错的问题解决方案
摘要: 现象 Avoided redundant navigation to current location: 避免了对当前位置的冗余导航 解决方案 在 route.js 中添加以下代码 //获取原型对象上的push函数const originalPush = VueRouter.prototype.pu
阅读全文
posted @ 2021-07-23 10:04 未来可期_Durant
阅读(277)
评论(0)
推荐(0)
上一页
1
···
10
11
12
13
14
15
16
17
18
···
28
下一页
公告