设为首页收藏本站

JEECG官方网站-企业级JAVA快速开发平台

 找回密码
 立即注册

关注JEECG发展历程 关注最新动态和版本, 记录JEECG成长点滴 最新动态 - 技术支持 - 师徒架构班

JEECG最新版本下载 JEECG智能开发平台 - 显著提高开发效率 常见问题 - 入门视频 - 参与开源团队

商务 QQ: 3102411850、418799587 商务热线: 18611788525 客服电话: 010-64808099 官方邮箱: jeecgos@163.com

楼主: admin

【常见问题】JeecgBoot常见问题大全

[复制链接]

0

主题

0

好友

18

积分

新手上路

Rank: 2

发表于 2019-6-13 08:50:24 |显示全部楼层
版主你好,我使用一对多生成的代码,附表的mapper.xml中报了下文中的错误,我在前边没有找到类似的问题,请帮我看一下吧

FreeMarker template error (DEBUG mode; use RETHROW in production!):
The following has evaluated to null or missing:
==> subTab.originalForeignKeys  [in template "java\\${bussiPackage}\\${entityPackage}\\mapper\\xml\\[1-n]Mapper.xml" at line 2, column 32]

----
Tip: It's the step after the last dot that caused this error, not those before it.
----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----

----
FTL stack trace ("~" means nesting-related):
        - Failed at: #assign originalForeignKeys = subTab...  [in template "java\\${bussiPackage}\\${entityPackage}\\mapper\\xml\\[1-n]Mapper.xml" at line 2, column 1]
----

Java stack trace (for programmers):
----
freemarker.core.InvalidReferenceException: [... Exception message was already printed; see it above ...]
        at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:134)
        at freemarker.core.Assignment.accept(Assignment.java:139)
        at freemarker.core.Environment.visit(Environment.java:366)
        at freemarker.core.IteratorBlock$IterationContext.executedNestedContentForCollOrSeqListing(IteratorBlock.java:317)
        at freemarker.core.IteratorBlock$IterationContext.executeNestedContent(IteratorBlock.java:271)
        at freemarker.core.IteratorBlock$IterationContext.accept(IteratorBlock.java:242)
        at freemarker.core.Environment.visitIteratorBlock(Environment.java:642)
        at freemarker.core.IteratorBlock.acceptWithResult(IteratorBlock.java:107)
        at freemarker.core.IteratorBlock.accept(IteratorBlock.java:93)
        at freemarker.core.Environment.visit(Environment.java:330)
        at freemarker.core.Environment.process(Environment.java:309)
        at freemarker.template.Template.process(Template.java:384)
        at org.jeecgframework.codegenerate.generate.util.b.a(FreemarkerHelper.java:85)
        at org.jeecgframework.codegenerate.generate.impl.a.a.a(BaseCodeGenerate.java:105)
        at org.jeecgframework.codegenerate.generate.impl.a.a.a(BaseCodeGenerate.java:75)
        at org.jeecgframework.codegenerate.generate.impl.a.a.a(BaseCodeGenerate.java:55)
        at org.jeecgframework.codegenerate.generate.impl.a.a.a(BaseCodeGenerate.java:39)
        at org.jeecgframework.codegenerate.generate.impl.CodeGenerateOneToMany.generateCodeFile(CodeGenerateOneToMany.java:174)
        at org.jeecg.JeecgOneToMainUtil.main(JeecgOneToMainUtil.java:65)
回复

使用道具 举报

0

主题

0

好友

14

积分

新手上路

Rank: 2

发表于 2019-6-13 10:48:43 |显示全部楼层
新生成的代码 无论查询还是插入 都org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): org.jeecg.modules.ngalain.mapper.NgAlainMapper.insert 代码没放到modules里面 ,但改了包扫描,编译文件各种xml mapper都在,求解。
回复

使用道具 举报

0

主题

0

好友

18

积分

新手上路

Rank: 2

发表于 2019-6-14 08:49:57 |显示全部楼层
13043022076 发表于 2019-6-13 08:50
版主你好,我使用一对多生成的代码,附表的mapper.xml中报了下文中的错误,我在前边没有找到类似的问题,请 ...

我的问题已经解决。在生成一对多代码的main方法中,附表配置的最后方没有写这行代码po.setOriginalForeignKeys(new String[]{"字表外键字段"});
加上这行代码就没有报错了
回复

使用道具 举报

0

主题

0

好友

16

积分

新手上路

Rank: 2

发表于 2019-6-14 09:01:11 |显示全部楼层
为什么jeditable针对datetime类型不能禁用disabled

datatime无法禁用

datatime无法禁用
回复

使用道具 举报

0

主题

0

好友

18

积分

新手上路

Rank: 2

发表于 2019-6-17 23:52:38 |显示全部楼层
版主您好,前端问题,我在页面系统管理—用户管理,新加了个路由组件,然后刷新页面之后,再去登录页面,  network提示调动了login接口,queryByUser接口,还有logout接口,并且logout接口报404,这种事什么问题导致的,是因为我新加路由的时候组件写错了,还是什么问题
回复

使用道具 举报

1

主题

0

好友

19

积分

新手上路

Rank: 2

发表于 2019-6-24 09:46:04 |显示全部楼层
您好,请问我在点击刷新验证码的时候出现这个问题是怎么回事呢?Parameter conditions "shortcut_top" not met for actual request parameters
回复

使用道具 举报

0

主题

0

好友

18

积分

新手上路

Rank: 2

发表于 2019-6-25 11:37:08 |显示全部楼层
我启动项目,登录后首页网页左侧的文字显示乱码,用户名也是名字。

打开之后就这样了

打开之后就这样了
回复

使用道具 举报

0

主题

0

好友

20

积分

新手上路

Rank: 2

发表于 2019-6-28 16:38:29 |显示全部楼层
您好请问一下我在此标签中
<t:dgCol title="用户名"  field="userName"  query="true" queryMode="single"  width="120"></t:dgCol>
增加query="true" 页面搜索效果出来了,但是为什么数据不能查
回复

使用道具 举报

0

主题

0

好友

16

积分

新手上路

Rank: 2

发表于 2019-7-2 16:19:49 |显示全部楼层
本帖最后由 holy 于 2019-7-2 16:21 编辑

V 2.0.1 有没有谁遇到过 swagger2 在启动时报错
  1. <pre style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 11.9px; overflow-wrap: normal; background-color: rgb(246, 248, 250); border-radius: 3px; line-height: 1.45; overflow: auto; padding: 16px; color: rgb(36, 41, 46);"><code style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; background: transparent; border-radius: 3px; border: 0px; word-break: normal; display: inline; line-height: inherit; overflow: visible; overflow-wrap: normal;">2019-07-02 10:52:13.353 [main] ERROR org.springframework.boot.SpringApplication:858 - Application run failed
  2. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serviceModelToSwagger2MapperImpl': Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [springfox.documentation.swagger2.mappers.ServiceModelToSwagger2MapperImpl] from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2]
  3.         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:265)
  4.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1253)
  5.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1168)
  6.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
  7.         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
  8.         at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
  9.         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
  10.         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
  11.         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  12.         at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:849)
  13.         at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877)
  14.         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)
  15.         at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142)
  16.         at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775)
  17.         at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
  18.         at org.springframework.boot.SpringApplication.run(SpringApplication.java:316)
  19.         at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)
  20.         at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)
  21.         at org.jeecg.JeecgApplication.main(JeecgApplication.java:23)
  22. Caused by: java.lang.IllegalStateException: Failed to introspect Class [springfox.documentation.swagger2.mappers.ServiceModelToSwagger2MapperImpl] from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2]
  23.         at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:686)
  24.         at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:583)
  25.         at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:568)
  26.         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:248)
  27.         ... 18 common frames omitted
  28. Caused by: java.lang.NoClassDefFoundError: io/swagger/models/Contact
  29.         at java.lang.Class.getDeclaredMethods0(Native Method)
  30.         at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
  31.         at java.lang.Class.getDeclaredMethods(Class.java:1975)
  32.         at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:668)
  33.         ... 21 common frames omitted
  34. Caused by: java.lang.ClassNotFoundException: io.swagger.models.Contact
  35.         at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
  36.         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
  37.         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
  38.         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
  39.         ... 25 common frames omitted</code></pre>
复制代码
回复

使用道具 举报

0

主题

0

好友

14

积分

新手上路

Rank: 2

发表于 2019-7-4 12:06:44 |显示全部楼层
前端访问 http://localhost:3000 会跳转至登录页,这是在哪里配置的?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

Archiver|手机版|JEECG技术论坛 - 基于BPM的JAVA快速开发平台 ( 京ICP备12013567号-3 )  

GMT+8, 2019-9-19 10:22 , Processed in 2.246404 second(s), 22 queries , Gzip On.

JEECG Open Source

© 2001-2012 Comsenz Inc.

回顶部