Spring Security 1. 2. 3. Project Snapshot 4. POM xml FIle <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.SpringSecurity</groupId> <artifactId>SpringSecurity</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging> <name>SpringSecurity</name> <description>h2demo project for Spring Boot</description> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.10.RELEASE</version> <relativePath/> <!-- lookup parent from repos...
Posts
- Get link
- X
- Other Apps
H2 DataBase 1. Create Spring Projects from New Starter Projects 2. Select 3. 4 H2demoApplication Class package com.h2demo; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class H2demoApplication { public static void main(String[] args) { SpringApplication.run(H2demoApplication.class, args); } } 5 application.properties server.port=9009 spring.thymeleaf.cache=false spring.h2.console.enabled=true spring.h2.console.path=/console 6 Run the program. It will display ====================================================== 7 8
- Get link
- X
- Other Apps
Exception Handler in Class 1. 2. ExceptionhandlingApplication class package com.Exceptionhandling; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class ExceptionhandlingApplication { public static void main(String[] args) { SpringApplication.run(ExceptionhandlingApplication.class, args); } } 3. Application.properties server.port=9009 spring.thymeleaf.cache=false 4. POM.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.Exceptionhandling</groupId> <artifactId>Exceptionhandling</artifactId...
- Get link
- X
- Other Apps
Error Handling 1. Screenshot 2. POM File <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.errorhandling</groupId> <artifactId>internationalization</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging> <name>errorhandling</name> <description>errorhandling project for Spring Boot</description> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.0.RELEASE</version> <relativePath /> <!-- lookup parent from repository --> ...
- Get link
- X
- Other Apps
Internalization 1. Internalization 2 Screen Shot 3 Pom File <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.internationalization</groupId> <artifactId>internationalization</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging> <name>internationalization</name> <description>internationalization project for Spring Boot</description> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.0.RELEASE</version> <relativePath/> <...
- Get link
- X
- Other Apps
Thymeleaf Example 1. Screen Shot 2 POM File <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>thymeleafdemo</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging> <name>demo</name> <description>Demo project for Spring Boot</description> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.0.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent> <proper...