Thymeleaf模板页面直接调用后台service层的方法
service层
1 | public interface TestService { |
service层实现类
1 | @Service("test") |
thymeleaf的Html
1 | <select th:with="options=${@test.getTestDictList()}"> |
I'm so cute. Please give me money.
service层
1 | public interface TestService { |
service层实现类
1 | @Service("test") |
thymeleaf的Html
1 | <select th:with="options=${@test.getTestDictList()}"> |