随笔分类 -  Java

摘要:在做一个SpringBoot项目的时候在Dao层使用了@Repository注解然后报了这个错: Description: Field userService in com.example.demo.Three.controller.UserController required a bean of 阅读全文
posted @ 2021-03-23 21:17 rainbow70626 阅读(214) 评论(0) 推荐(0)
摘要:SSM或Spring Boot开发中,mapper包中的mapper.xml没有编译到targger中的解决办法 在pom文件中加入如下配置: <resources> <!-- 编译之后包含xml --> <resource> <directory>src/main/java</directory> 阅读全文
posted @ 2021-03-23 21:05 rainbow70626 阅读(245) 评论(0) 推荐(0)
摘要:下载地址为: 链接:https://pan.baidu.com/s/18lnF2KemQTqkKaCRmMbvXA 提取码:1pie 版权声明:本书版权属于出版社和作者。仅学习使用,请于下载后24小时内删除。如果喜欢本书,请购买正版。 阅读全文
posted @ 2021-03-16 00:08 rainbow70626 阅读(4980) 评论(0) 推荐(2)
摘要:vue界面启动项目 visual code报错 如下图,找到 Ignore Project Warning 前边打上对勾 阅读全文
posted @ 2021-03-12 23:27 rainbow70626 阅读(1988) 评论(0) 推荐(0)
摘要:问题原因:我是安装了最新的vuecli,版本大概是4.5.4,我最开始安装vuecli没有指定版本下面是我出问题的代码,其实就是自己不会用vuecli4。 npm install -g @vue/cli 我们回到创建了的项目代码中的main.js,我们看到 import {createApp} fr 阅读全文
posted @ 2021-03-12 23:00 rainbow70626 阅读(1076) 评论(0) 推荐(0)
摘要:VS Code 装好ESLint 插件报黄线的问题,具体解决方法如下所示: ESLint is disabled since its execution has not been approved or denied yet. Use the light bulb menu to open the 阅读全文
posted @ 2021-03-12 22:48 rainbow70626 阅读(650) 评论(0) 推荐(0)
摘要:问题描述: 昨天下载 ali 的一个 demo。本地 idea 编译的时候报错。 Error:java: 无效的源发行版: 11 具体原因: 项目的 jdk (Project SDK)版本 和项目的语言级别(Project language level )不同。 解决方式: 方法1: 打开 idea 阅读全文
posted @ 2021-03-09 23:45 rainbow70626 阅读(934) 评论(0) 推荐(0)
摘要:idea maven sync Cannot resolve xxx 的解决方案 经常会出现这种奇葩情况,提示找不到包 其实是因为网络波动或者突然断掉,导致包更新出现问题 直接去maven的仓库目录 找到不能找到的包 删掉相关目录 然后重新更新maven就行了 比如: 直接去仓库目录下: 把这个因为 阅读全文
posted @ 2021-03-01 22:28 rainbow70626 阅读(673) 评论(0) 推荐(0)
摘要:今天写东西测试的时候发现一个问题,如下: application.yml中数据源是这样配置的: 第一反应就是记忆中连接mysql的驱动不都是com.mysql.jdbc.Driver吗?com.mysql.cj.jdbc.Driver是什么鬼?后来查看了一下才知道 这个跟驱动的依赖版本有关 <dep 阅读全文
posted @ 2021-03-01 22:19 rainbow70626 阅读(607) 评论(0) 推荐(0)
摘要:spring常用dataSource配置如下: spring: datasource: username: root password: root url: jdbc:mysql://localhost:3306/datamiddle?characterEncoding=utf8&useSSL=tr 阅读全文
posted @ 2021-03-01 22:15 rainbow70626 阅读(710) 评论(0) 推荐(0)
摘要:问题描述: Intellij IDEA开发环境中Springboot项目无Run ****main()的菜单。 解决办法有以下几种: 方法1:Idea无右键run选项, 无法通过main方法启动springboot项目 方法2:IDEA spring-boot application右键没有run 阅读全文
posted @ 2021-01-26 00:00 rainbow70626 阅读(1867) 评论(0) 推荐(0)
摘要:两种配置方式: 1. maven 配置文件配置settings.xml中设置mirror节点 <mirror> <id>nexus-aliyun</id> <mirrorOf>central</mirrorOf> <name>Nexus aliyun</name> <url>http://maven 阅读全文
posted @ 2021-01-23 20:02 rainbow70626 阅读(1477) 评论(0) 推荐(0)
摘要:原文链接: spring-framework-x.x.x.RELEASE-dist下载教程 阅读全文
posted @ 2021-01-21 22:32 rainbow70626 阅读(60) 评论(0) 推荐(0)
摘要:在Idea中使用Maven创建父子工程,第一个Model的那个项目可以很好的运行,在创建一个Model运行时报这个错。原因是tomcat部署了多个Web项目,可能最开始是两个项目的配置文件混用用,最后就报这个错。 网上找的解决方案: 步骤:File-- Porject Struccture Arti 阅读全文
posted @ 2021-01-21 20:34 rainbow70626 阅读(1486) 评论(0) 推荐(0)
摘要:在Java桌面开发或者Java Web开发(基于SSM框架)配置MySQL数据源时,driverClassName属性如果填错了,会导致了这一系列错误。归结其原因就是 mysql-connector-java版本不同,driverClassName也不会有所不同。 MySQL的链接中间件mysql- 阅读全文
posted @ 2021-01-21 17:31 rainbow70626 阅读(2965) 评论(0) 推荐(0)
摘要:Intellij IDEA IDE中采用Maven集成SSM框架时设计的配置文件主要有:pom.xml、web.xml、applicationContext.xml、springmvc-config.xml、mybatis-connfig.xml、jdbc.properties、log4j2.pro 阅读全文
posted @ 2021-01-20 22:09 rainbow70626 阅读(178) 评论(0) 推荐(0)
摘要:错误描述: The content of element type "web-app" must match"(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listene 阅读全文
posted @ 2021-01-20 20:35 rainbow70626 阅读(506) 评论(0) 推荐(0)
摘要:控制台报错 ### Error querying database. Cause: java.sql.SQLSyntaxErrorException: Unknown column 'user_name' in 'field list' ### The error may exist in panf 阅读全文
posted @ 2021-01-20 18:01 rainbow70626 阅读(1964) 评论(0) 推荐(0)
摘要:现象描述: IDEA中导入其它由Maven管理的java web项目并运行,提示“Error:(3, 38) java: 程序包org.springframework.stereotype不存在”,并且springframework还是红色的,表明缺失该jar包。 在使用SpringBoot创建项目 阅读全文
posted @ 2021-01-20 15:20 rainbow70626 阅读(7322) 评论(0) 推荐(0)
摘要:原文链接: idea中创建maven的Javaweb工程并进行配置(图文教程) 阅读全文
posted @ 2021-01-18 22:20 rainbow70626 阅读(68) 评论(0) 推荐(0)