我只是试图将一个基于maven的项目发送到另一台计算机和HORROR,到处都是红色标记!!
但是mvn clean install
建设得很好.
很快我注意到,龙目不产生getter和setter我的班,但是@Getter
和@Setter
通过Eclipse中被正确识别.
两台计算机使用相同的Maven版本(3.0.4)但使用不同的JDK(1.6_23和1.6_33).他们都使用Eclipse Indigo 32位.
我在Eclipse中有lombok插件并在Eclipse编译器中启用了Eclipse中的注释处理,但是当我使用@ Slf4j注释时它仍然无法识别日志语句.
我们必须进行任何其他设置吗?
我是一个看似简单的Spring问题的Spring新手.我工作了几个小时没有运气.这是例外,后面是代码(提前谢谢):
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'graphiteWriterSession' defined in file [/home/user/resources/jmxtrans.graphite.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'host' of bean class [com.example.ExampleClass]: Bean property 'host' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
Run Code Online (Sandbox Code Playgroud)
我的bean定义:
<bean id="graphiteWriterSession" class="com.example.ExampleClass">
<property name="host" value="host.example.com" />
<property name="port" value="2023" />
<property name="namespacePrefix" value="apps.foo.bar" />
<property name="debug" value="true" />
</bean>
<bean id="jmxtransSession" …
Run Code Online (Sandbox Code Playgroud) 升级到最新的 Eclipse 版本,现在出现以下错误:
Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @5d01b0d8
Run Code Online (Sandbox Code Playgroud)
我尝试在偏好下更改 JDK,但没有运气。
我最近在macOS High Sierra中安装了新的Spring Tool Suite 4,但是当我尝试运行Lombok的安装时,它找不到我的STS安装,
我按照这个步骤进行手动安装(将-javaagent添加到ini文件中),但没有运气:https://www.edvpfau.de/sts-spring-tool-suite-4-mit-lombok/.
任何的想法?