Coder Social home page Coder Social logo

Comments (6)

Hccake avatar Hccake commented on July 29, 2024

支持的,你用的哪个版本?
另外最好可以给个可以复现的最简 demo,可以基于 https://github.com/ballcat-projects/ballcat-samples/blob/master/ballcat-sample-i18n 修改

from ballcat.

wuzhixaun avatar wuzhixaun commented on July 29, 2024

@Data @I18nClass public class TestData { @I18nField(code = "menu.order.xxx") private String username; }

我是要这样使用 code 国际化,然后报错 EL1008E: Property or field 'menu' cannot be found on object of type 'com.ecoflow.ecoflowexample.TestData' - maybe not public or not valid?

from ballcat.

Hccake avatar Hccake commented on July 29, 2024

menu 是 TestData 类的属性中吗,code 的 spel 解析时使用的当前对象内部的属性作为上下文

from ballcat.

wuzhixaun avatar wuzhixaun commented on July 29, 2024

@DaTa @I18nClass public class TestData { @I18nField(code = "menu.order.xxx") private String username; private String code; }
那如果我取 TestData 中code 的值 , @I18nField(code =spel )这个spel应该怎么写了

from ballcat.

wuzhixaun avatar wuzhixaun commented on July 29, 2024

可以了吧,直接写字段名就好了,多谢大佬

from ballcat.

Hccake avatar Hccake commented on July 29, 2024

不客气,解决了就好

from ballcat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.