摘要: Order是mysql里面的关键词,然后还有很多人不小心的把order作为表名 解决方案:改表名:t_order、orders等 但是有些人已经写好java代码了,改起来太麻烦,有没有其他的解决方案? 刚好有,就是通过与某些符号对表名就行转义就行了 找到键盘上的ECS下面的那个按键 ,用“ ` ”把 阅读全文
posted @ 2020-11-12 16:53 童未惜 阅读(1872) 评论(0) 推荐(0) 编辑
摘要: 一、注解 (annotations) 列表 @SpringBootApplication:包含了 @ComponentScan、@Configuration 和 @EnableAutoConfiguration 注解。其中 @ComponentScan 让 spring Boot 扫描到 Confi 阅读全文
posted @ 2020-11-12 09:32 童未惜 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 概要 在使用IDEA开发微服务的时候,微服务比较多,启动起来比较麻烦,下面介绍一下使用批量启动微服务的方法。 方法 编辑当前项目根目录下的 .idea\workspace.xml 文件。 找到 <component name="RunDashboard"> 在这个标签下增加: <option nam 阅读全文
posted @ 2020-11-11 11:28 童未惜 阅读(760) 评论(0) 推荐(0) 编辑
摘要: Spring Boot中推荐使用Thymeleaf作为模板引擎.因为Thymeleaf提供了完美的SpringMVC支持. Thymeleaf是一个java类库,他是一个xml/xhtml/html5的模板引擎,可以作为mvc的web应用的view层。 我们把HTML页面放在classpath:/t 阅读全文
posted @ 2020-10-31 11:30 童未惜 阅读(32610) 评论(0) 推荐(2) 编辑
摘要: 每次导入新项目就更改成默认的maven!!特别导入半天才发现简直气疯了!!于是百度了这个问题。 旧版本:Other Setting >Default Settings >设置maven >Apply >OK 新版方法:先file colse project关闭当前项目到启动页面 右下角点config 阅读全文
posted @ 2020-10-29 15:34 童未惜 阅读(3518) 评论(0) 推荐(1) 编辑
摘要: 通过maven工程创建springboot项目 引入如下依赖 1 <!-- Inherit defaults from Spring Boot --> 2 3 <parent> 4 5 <groupId>org.springframework.boot</groupId> 6 7 <artifact 阅读全文
posted @ 2020-10-29 15:08 童未惜 阅读(527) 评论(0) 推荐(0) 编辑
摘要: 先安装vue插件: file --> settings --> plugins-->vue.js-->install 设置vue文件模板。 file-->setting-->editor-->file and code Templates,选择Vue File,然后可以在右边框中编辑默认模板内容,编 阅读全文
posted @ 2020-10-13 12:34 童未惜 阅读(1818) 评论(0) 推荐(0) 编辑
摘要: 常用快捷键 Alt+Enter 智能补全 /引包 Alt + Insert 代码自动生成(补全代码),如生成对象的 set / get 方法 Ctrl + Alt + L 格式化代码 Ctrl + Alt + S 打开 IntelliJ IDEA 系统设置(setting) Shift + F10 阅读全文
posted @ 2020-09-29 10:50 童未惜 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 新建maven项目: file--new--project 勾中Create from grchetype ,选择org.apache.maven.archetypes: maven-archetype-webapp创建web项目工程 2、填写坐标,“groupId”,“artifactId”,“v 阅读全文
posted @ 2020-09-25 15:44 童未惜 阅读(125) 评论(0) 推荐(0) 编辑
摘要: eclipse:选择lib里面的jar包--右键build path--add to build path(添加jar包的路径) idea:File -> Project Structure -> Modules -> 选中要添加build path的项目 -> Dependencies -> 点击 阅读全文
posted @ 2020-09-17 14:46 童未惜 阅读(335) 评论(0) 推荐(0) 编辑