![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Intellij idea
小公子三木君
这个作者很懒,什么都没留下…
展开
-
EHcache
springboot自带的缓存,只要简单的配置即可 1)引入依赖,网上百度 2)简单配置xml文件 3)配置注解 @repository注解 @CacheConfig(cacheNames="book_cache" 4)在方法上添加注解@Cacheable 之后执行的时候,方法的返回值会被记录到缓存,如果下次继续调用,就不会再执行一次方法,而是直接返回值。 今天还学习了@SpringbootTest注解和@RUNWith注解。 ...原创 2020-08-05 22:51:14 · 109 阅读 · 0 评论 -
Intellij idea org.springframework.boot不存在
包名找不到。 情况1:网络上解决方案 1)reimport 2)删除本地仓库所有版本,reimport。 3)配置project structure等等等等。 如果org.springframework.boot真的是黑的,表示没有。那就降低下pom.xml里面引用的版本。 然后Reimport maven: 情况2: 网络上大都是这种方法,根本不可行。同样的方法出现很多次= =。 真正的原因没找到= =。解决方案:重装Intellij 即可运行成功。= =。(总觉得代价...原创 2020-05-24 13:35:04 · 5180 阅读 · 0 评论 -
'url' attribute is not specified and no embedded datasource could be configured
解决方案之一: 因为数据库配置信息。在application.properties里添加信息: #描述数据源 spring.datasource.url="jdbc:mysql://localhost:3306/world?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC&nul...原创 2020-05-04 10:41:00 · 837 阅读 · 0 评论 -
Intellij idan利用mybatis-generator生成数据库操作
1.配置pom.xml文件添加依赖 <plugin> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-maven-plugin</artifactId> <version>1.3.2</version>...原创 2020-05-04 10:39:19 · 181 阅读 · 0 评论 -
Intellij idea 自带功能模块连接数据库
右侧有个Database,点击出窗口,然后如下: 2.输入相关信息: 这里的world是其中一个数据库。 输入账号密码之后,测试连接,失败有信息。 timezone. 网上查下,进入mysql修改时区,即可登录。 连接成功之后,可以输入sql语句来操作数据库。 ...原创 2020-05-03 17:36:11 · 736 阅读 · 0 评论