BAEL-3827 Add CSS and JS to Thymeleaf (#8985)

* BAEL-3827 Add CSS and JS to Thymeleaf

* BAEL-3827 Add integration tests

* BAEL-3827 Add new spring-thymeleaf-3 module to the parent pom.xml

* BAEL-3827 Add new spring-thymeleaf-3 module to the parent pom.xml in both places
This commit is contained in:
Amy DeGregorio
2020-03-31 12:02:54 -04:00
committed by GitHub
parent 8c69054bec
commit 1e052c5a72
11 changed files with 221 additions and 0 deletions
@@ -0,0 +1,11 @@
package com.baeldung.thymeleaf;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
@@ -0,0 +1,11 @@
package com.baeldung.thymeleaf.cssandjs;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class CssAndJsApplication {
public static void main(String[] args) {
SpringApplication.run(CssAndJsApplication.class, args);
}
}
@@ -0,0 +1,15 @@
package com.baeldung.thymeleaf.cssandjs;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class CssAndJsController {
@GetMapping("/styled-page")
public String getStyledPage(Model model) {
model.addAttribute("name", "Baeldung Reader");
return "cssandjs/styledPage";
}
}