mybatis-generator整合通用mapper使用generator插件生成model.mapper时报错: 产生以下错误:↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 解决办法: 1:检查generator插件中是否添加tk.mybatis的依赖↓↓↓↓↓↓↓↓↓↓↓↓ 2:检查myabtis-generator的配置文件中是否缺少mysql的本地jar包引入↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 第一点是主要原因,第二点貌似关系不大,但是最好都加上~~~~…
异常 [INFO] --- spring-boot-maven-plugin:1.5.6.RELEASE:repackage (default) @ spring-boot-starter-log --- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ---------------------------------------…
[背景]spring-boot项目,打包成可执行jar,项目内有两个带有main方法的类并且都使用了@SpringBootApplication注解(或者另一种情形:你有两个main方法并且所在类都没有使用@SpringBootApplication注解),pom.xml如下 <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin<…
1.异常提示: Description Resource Path Location Type Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.6:resources failed: Unable to load the mojo 'resources' (or one of its required components) from the plugin 'org.apa…
问题描述:更改默认的maven仓库路径完成后.即存maven项目或者新建maven项目的时候出现如下错误 Could not get the value for parameter encoding for plugin execution default 原因分析:当问题解决后.回首想想应该是当时在更改本地仓库([自学maven系列]之修改eclipse的maven默认仓库路径)的最后一步.也就是在重新download默认的maven包的时候出现了问题.记得当时已经24点之后.电脑锁屏了一会无…
eclipse在其POM文件的一处提示出错如下: Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (execution: default-compile, phase: compile) 这表示m2e在其执行maven的生命周期管理时没有定义该插件,所以提示出错,其实m2e对此是提供了扩展机制的,我们可以通过如下操…
eclipse在其POM文件的一处提示出错如下: Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (execution: default-compile, phase: compile) 这表示m2e在其执行maven的生命周期管理时没有定义该插件,所以提示出错,其实m2e对此是提供了扩展机制的,我们可以通过如下操…
pom文件中报错提示: Plugin execution not covered by lifecycle configuration: net.alchim31.maven:yuicompressor-maven-plugin:1.5.1:compress (execution: default, phase: process- resources) 上网一搜,很多人说在<plugins>标签外面加<pluginManagement>标签就可以了,加了pluginManageme…
给UITableViewController 展示数据时候 删除系统自带viewController 然后拖过来一个UITableViewController 指定class后没有指定main入口 报错如下 2 2015-05-26 09:02:38.284 团购[678:15798] Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' - perhaps the designated…
maven项目的构建生命周期(build lifecycle)由很多阶段组成:从validate到deploy. maven插件中包含goal.这些goal可以被绑定到不同的maven的构建阶段上.goal表示一个特定的任务,是一个比构建阶段更细粒度的构建步骤,用于构建和管理当前项目. 要使用maven插件提供的goal,首先得知道这些插件提供了哪些goal以及他们的用法. maven的核心插件之一 --- help插件(Maven Help Plugin)可以用于查看插件提供了哪些goal.…
tk.mybatis是一个很好用的通用插件,把CRUD这些基本的数据操作全都用动态SQL语句自动生成了,mapper和xml里十分清爽,但是昨天发现有一个小坑,记录在此: 有一张表,结构如下(已经简化了): CREATE TABLE `t_sample` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '自增ID', `empcode` varchar(8) NOT NULL DEFAULT '' COMMENT '员工号', `datacha…
使用mybatis的代码生成工具:mybatis-generator,在父model中引入了maven插件的依赖,如下: <!-- Mybatis.generator插件 --> <plugin> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-maven-plugin</artifactId> <version>${mybati…
在学习maven的时候,想要新建一个maven工程,在命令行执行create或generate命令. 错误如图所示: failed to execute goal org.apache.maven.plugins:maven-archetye-plugin:2.4:generate... 解决办法: http://doc.okbase.net/Josh_Persistence/archive/192456.html 这里面提到了四种可能的原因及解决办法. 环境变量配置什么的检查就不提了. (1)…
Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' - perhaps the designated entry point is not set? 这是因为给你的StoryBoard没有设置默认显示的controller, 解决方法: from:http://my.oschina.net/u/936286/blog/316565…
myeclipse在其POM文件的一处提示出错如下: Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-resources-plugin::resources (execution: default-resources, phase: process-resources) 这表示m2e在其执行maven的生命周期管理时没有定义该插件,所以提示出错,其实m2e对此是提供了扩…
如题,maven项目eclipse提示pom.ml有错,提示信息就是org.apache.maven.plugin.war.WarMojo. 然后执行 maven install 出现如下错误提示 [INFO] --- maven-war-plugin:2.2:war (default-war) @ ams-web --- [WARNING] Error injecting: org.apache.maven.plugin.war.WarMojo java.lang.TypeNotPresent…
没有选择附件,但是点击上传按钮的时候会报错. 之前不选择文件,直接上传空文件是可以的,后来不知道改了什么就不行了. 错误信息: -- :: [http--] TRACE org.springframework.beans.TypeConverterDelegate - Field [] isn't an enum value java.lang.NoSuchFieldException: at java.lang.Class.getField(Unknown Source) at org.spr…
解决Jetty Maven Plugin:Please initialize the log4j system properly.Jetty Maven Plugin环境: <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>.v20130312</version> </p…
一.背景 最近项目中使用了redisson的哨兵模式来作为redis操作的客户端,然后一个意外出现了,启动报:Failed to instantiate [org.redisson.api.RedissonClient]: Factory method 'create' threw exception; nested exception is java.lang.ArrayIndexOutOfBoundsException: 0.具体错误如下: 二.出现原因以及解决方式 经过不懈的努力,最终定位…
Spring Boot + Eureka Server + Hystrix with Turbine: empty turbine.stream 配置的时候遇到了问题: Property or field 'default' cannot be found on object of type 'com.netflix.appinfo.InstanceInfo' - m 原配置: turbine: app-config: eureka-consumer-ribbon-hystrix cluster…
将模型用flask封装,返回json时报错:TypeError: Object of type 'int32' is not JSON serializable 网上搜索出的解决方案:重写json.JSONEncoder class MyEncoder(json.JSONEncoder): def default(self, obj): if isinstance(obj, numpy.integer): return int(obj) elif isinstance(obj, numpy.fl…
今天在集成Mapper时 出现如下错误 java.lang.NoSuchMethodException: tk.mybatis.mapper.provider.base.BaseSelectProvider.<init>() 遇到这个异常通常是@MapperScan配置的原因,导包导错了 解决方案:将红框里的换成  import tk.mybatis.spring.annotation.MapperScan; 重新运行,问题解决…
Failed to convert value of type 'java.lang.String' to required type 'java.util.Date' 首先这个错误的意思是 前台页面传递在string类型的时间数据,比如'2020-05-31 10:00:00' 后台使用Date类型去接收,但是报错了. 解决方法: 要解决这个问题其实很简单, 在接收的字段上面,添加下面的注解 就可以了 @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss"…
小结: 0.结构图 client-request ---> cgi/fastcgi (interface/server)  ---> cgi/fastcgi program/applications  ---> client 1.CGI程序运行在独立的进程中,并对每个Web请求创建一个进程:由于地址空间无法共享,也限制了资源重用. Since a new process is created for each request and thrown away when the reques…
第一招 在进行Java Web项目开发的时候,我碰到过下面这个异常: Cannot find any information on property 'XXX' in a bean of type 'XXX' 如图: 这是javaBean中: 这是显示结果的jsp页面中: 解决方法是: 将javaBean中setClassRanking_she方法改为setClassranking_she,保持存在一个大写字母是安全的. 第二招 on property 'XXX' in a bean of ty…
上午敲代码时出现这个问题,简单记录一下解决办法,有时间详细描述一下深层原因. 问题出现在这: @Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); getSupportFragmentManager().putFragment(outState, "mContent", mContent); }   网上查看了一下,只需修改为如下: @Overr…
今天测试人员在测试应用APP的时候应用crash了,查看了下crash log如下所示: java.lang.IllegalStateException: Exception thrown on Scheduler.Worker thread. Add `onError` handling. at rx.android.schedulers.LooperScheduler$ScheduledAction.run(LooperScheduler.java:112) at android.os.Ha…
错误描述 今天在Android Studio项目中加入了jackson的开发包,编译运行时候,引发了如下的错误: Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'. > com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Du…
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init meth…
错误描写叙述 今天在Android Studio项目中添加了jackson的开发包,编译执行时候.引发了例如以下的错误: Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'. > com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException…