there is a set collection of tag classes in the user class;
maintain relationships only from the user class, one-to-many
@ OneToMany
@JoinTable(name="shuo_tag",
inverseJoinColumns=@JoinColumn(name="tag_id"),
joinColumns=@JoinColumn(name="shuo_id"))
private Set<Tag> tags;
there is no maintenance relationship in the Tag class
then I am in html
[[${user}]] so getting user will cause the following error
java.lang.StackOverflowError: null
at java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1012) ~[na:1.8.0_151]
at java.util.concurrent.ConcurrentHashMap.putIfAbsent(ConcurrentHashMap.java:1535) ~[na:1.8.0_151]
at java.lang.ClassLoader.getClassLoadingLock(ClassLoader.java:463) ~[na:1.8.0_151]
at java.lang.ClassLoader.loadClass(ClassLoader.java:404) ~[na:1.8.0_151]
at java.lang.ClassLoader.loadClass(ClassLoader.java:411) ~[na:1.8.0_151]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) ~[na:1.8.0_151]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_151]
at org.thymeleaf.util.JavaScriptUtils.printObject(JavaScriptUtils.java:365) ~[thymeleaf-2.1.6.RELEASE.jar:2.1.6.RELEASE]
at org.thymeleaf.util.JavaScriptUtils.print(JavaScriptUtils.java:184) ~[thymeleaf-2.1.6.RELEASE.jar:2.1.6.RELEASE]
at org.thymeleaf.util.JavaScriptUtils.printArray(JavaScriptUtils.java:227) ~[thymeleaf-2.1.6.RELEASE.jar:2.1.6.RELEASE]