LoginSignup
baningugozira
@baningugozira

Are you sure you want to delete the question?

If your question is resolved, you may close it.

Leaving a resolved question undeleted may help others!

We hope you find it useful!

Java及びSpring Bootのエラーについての質問

java及びSpring Bootについて質問です。
以下のようなエラーがあります。
・シンボル 'validation' を解決できません
・シンボル 'validation' を解決できません
・シンボル 'Email' を解決できません
・シンボル 'NotNull' を解決できません

xmlファイルに依存関係は追加している筈なのですが、うまく反映されてない感じです。
改善方法をご教授願いたいです。よろしくお願いします。

プログラムは以下のとおりです。
package com.example.bbs.application.form;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.lang.Nullable;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;

@Data
public class CommentForm {
@Nullable
@Length(max=20)
private String name;
@Nullable
@Email
@Length(max=100)
private String mailAddress;
@NotNull
@Length(min=1, max=400)
private String comment;
}

xmlファイルは長文になっており添付が難しいので下記URLより確認いただけますたありがたいです。
https://45.gigafile.nu/0725-faf01c71be778111230a299ee4636ad9

参考にしているWebサイトは以下のとおりです。
https://zenn.dev/angelica/books/52be1e365c61ea/viewer/104c03

0

1Answer

Your answer might help someone💌