xiaobo9

Results 9 comments of xiaobo9

中文交流一下。你这么做的目的是什么呢?这种小示例代码,可能并不能说明你真正这么做的意图吧。或许有更好的处理方式呢。

实现 `Foo` 的 `equals` 和 `hashCode` 方法,把要比较的属性都加进去。然后直接 objA.equals(objB) 进行比较。 可以借助工具类。比如 - `lombok` 的 `@EqualsAndHashCode` 注解 - commons-lang 的工具类`org.apache.commons.lang3.builder.HashCodeBuilder` 和 `org.apache.commons.lang3.builder.EqualsBuilder`

```java @Test public void diff() { User a = new User(); a.setFirstName("a"); User b = new User(); b.setFirstName("a"); System.out.println(EqualsBuilder.reflectionEquals(a,b)); b.setFirstName("b"); System.out.println(EqualsBuilder.reflectionEquals(a,b)); } ```

```java import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.InjectMocks; import org.mockito.Mockito; import org.mockito.junit.MockitoJUnitRunner; @RunWith(MockitoJUnitRunner.class) public class SomeTest { @InjectMocks private B b; private A a; @Before public void prepare() {...

@anewoneday2019 @dph5199278 升级到 spring boot 2 增加这个配置项 `spring.mvc.pathmatch.use-suffix-pattern=true` 就可以了。 看升级文档的时候,太长了,看了个大概,后来尝试升级的时候忘记了。但是想想访问 `login.html` 却能匹配到 `/login` controller 确实挺怪异的。然后就改了 `login.html` controller 能正常访问了。又搜索了才仔细看看这块的升级内容。

是不是改过构建代码啊。第四张图片显示 `docker-entrypoint.sh` 执行的时候,找不到 `java` 。构建的镜像有问题。

icon path should be `C:\\Users\\noti\\icon.png` not ` C:\Users\noti\icon.png` ```golang notification := toast.Notification{ AppID: "Example AppID", Title: "My notification", Message: "Some message about how important something is...", Icon: "C:\\Users\\noti\\icon.png", // This...

@salomeldc Is there any error message? If there is, post it

When running `python scanner.py`, I can get a list of sources with some sources. Running `scanner.exe` after pyinstaller, the source list is empty. The 32-bit `TWAINDSM.dll` can only be called...