Skip to content

Instantly share code, notes, and snippets.

@NeilAlishev
Created November 29, 2019 21:00
Show Gist options
  • Save NeilAlishev/c495348293cb6b8d5df0b239d6349345 to your computer and use it in GitHub Desktop.
Save NeilAlishev/c495348293cb6b8d5df0b239d6349345 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc.xsd">
<context:component-scan base-package="ru.alishev.springcourse"/>
<mvc:annotation-driven/>
<bean id="templateResolver" class="org.thymeleaf.spring5.templateresolver.SpringResourceTemplateResolver">
<property name="prefix" value="/WEB-INF/views/"/>
<property name="suffix" value=".html"/>
</bean>
<bean id="templateEngine" class="org.thymeleaf.spring5.SpringTemplateEngine">
<property name="templateResolver" ref="templateResolver"/>
<property name="enableSpringELCompiler" value="true"/>
</bean>
<bean class="org.thymeleaf.spring5.view.ThymeleafViewResolver">
<property name="templateEngine" ref="templateEngine"/>
<property name="order" value="1"/>
<property name="viewNames" value="*"/>
</bean>
</beans>
@xyrma133
Copy link

xyrma133 commented Jul 2, 2023

Спасибо, Наиль!

@RomanIvanov-atom
Copy link

Thanks!

@Staymix
Copy link

Staymix commented Sep 16, 2023

от души!

@BERSHOV-AO
Copy link

2023, Наиль Лучший!!

@solomon006
Copy link

Спасибо, Наиль!

@Tema777870
Copy link

Спасибо, Наиль!

@uglyhurd
Copy link

uglyhurd commented Jul 5, 2024

Лучший

@herbal-egress
Copy link

Спасибо! Ты очень помогаешь!!!

@1ntr0men
Copy link

Наиль спасибо!!!!

@stayyhydratedd
Copy link

A lot of thanks, Neil!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment