Spring MVC does not display html with angularjs directive

The angularjs function, called the directive, causes problems in spring mvc. If I use thymeleaf to render html with elements like

<div ui-view autoscroll="false"></div>

I got an error, for example

org.xml.sax.SAXParseException: Attribute name "ui-view" associated with an element type "div" must be followed by the ' = ' character.

Is there an elegant workaround or should I use something else than thimeleaf?

Edit:

Thank you very much for your answers, they helped me a lot.

Either you encode xml, or use some workaround. open your .properties applications and add the following

spring.thymeleaf.prefix=classpath:/templates/
spring.thymeleaf.suffix=.html
spring.thymeleaf.mode=LEGACYHTML5
spring.thymeleaf.encoding=UTF-8
spring.thymeleaf.content-type=text/html
spring.thymeleaf.cache=false
+4
source share
1 answer

. , , HTML . , .

<div ui-view="" autoscroll="false"></div>

: .

+9

All Articles