13043022076
发表于 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.originalForeignKeysMapper.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...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)
soul
发表于 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都在,求解。
13043022076
发表于 2019-6-14 08:49:57
13043022076 发表于 2019-6-13 08:50 static/image/common/back.gif
版主你好,我使用一对多生成的代码,附表的mapper.xml中报了下文中的错误,我在前边没有找到类似的问题,请 ...
我的问题已经解决。在生成一对多代码的main方法中,附表配置的最后方没有写这行代码po.setOriginalForeignKeys(new String[]{"字表外键字段"});
加上这行代码就没有报错了
深蓝的海
发表于 2019-6-14 09:01:11
为什么jeditable针对datetime类型不能禁用disabled
s_m_w
发表于 2019-6-17 23:52:38
版主您好,前端问题,我在页面系统管理—用户管理,新加了个路由组件,然后刷新页面之后,再去登录页面,network提示调动了login接口,queryByUser接口,还有logout接口,并且logout接口报404,这种事什么问题导致的,是因为我新加路由的时候组件写错了,还是什么问题
请叫我师哥
发表于 2019-6-24 09:46:04
您好,请问我在点击刷新验证码的时候出现这个问题是怎么回事呢?Parameter conditions "shortcut_top" not met for actual request parameters
Slaver
发表于 2019-6-25 11:37:08
我启动项目,登录后首页网页左侧的文字显示乱码,用户名也是名字。
1249557990
发表于 2019-6-28 16:38:29
您好请问一下我在此标签中
<t:dgCol title="用户名"field="userName"query="true" queryMode="single"width="120"></t:dgCol>
增加query="true" 页面搜索效果出来了,但是为什么数据不能查
holy
发表于 2019-7-2 16:19:49
本帖最后由 holy 于 2019-7-2 16:21 编辑
V 2.0.1 有没有谁遇到过 swagger2 在启动时报错<pre style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", 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, "Liberation Mono", 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 ERROR org.springframework.boot.SpringApplication:858 - Application run failed
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 from ClassLoader
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:265)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1253)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1168)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:849)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:316)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)
at org.jeecg.JeecgApplication.main(JeecgApplication.java:23)
Caused by: java.lang.IllegalStateException: Failed to introspect Class from ClassLoader
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:686)
at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:583)
at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:568)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:248)
... 18 common frames omitted
Caused by: java.lang.NoClassDefFoundError: io/swagger/models/Contact
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.getDeclaredMethods(Class.java:1975)
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:668)
... 21 common frames omitted
Caused by: java.lang.ClassNotFoundException: io.swagger.models.Contact
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 25 common frames omitted</code></pre>
QueenieYeung
发表于 2019-7-4 12:06:44
前端访问 http://localhost:3000 会跳转至登录页,这是在哪里配置的?
页:
1
2
3
[4]
5
6
7
8
9
10
11
12
13