Spring Tool Suite
The Spring Framework offers a safe webapp framework with integrated Hibernate style database mapping.
With Spring Tool Suite, all the config parameter settings are taken care of. Using STS, you can start out writing the Spring app rıght away. A word of caution, it may demand JVM (32bit version).
→ Spring Tool Suite
The default port number 8080. That can be set by specifying it in src/main/resources/application.properties file.
Using STS, the database mapping called JPA is as simple as specifying in pom.xml. The mapped class should be specified by annotation.
As for HTML pages, Thyme leaf is recommended and instead of JSP.
Error pages should be specified at src/main/resources/templates/error such as 404.html.
With Thymeleaf, the HTML pages can access the messages specified in property files. Create the application.properties in src/main/resources/templates with the following contents. The property files should have the language code at the end of the file name, separated by a underscore, such as .
With Spring Tool Suite, all the config parameter settings are taken care of. Using STS, you can start out writing the Spring app rıght away. A word of caution, it may demand JVM (32bit version).
→ Spring Tool Suite
The default port number 8080. That can be set by specifying it in src/main/resources/application.properties file.
server.port = 8090
Using STS, the database mapping called JPA is as simple as specifying in pom.xml. The mapped class should be specified by annotation.
As for HTML pages, Thyme leaf is recommended and instead of JSP.
<dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <scope>runtime</scope> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> </dependencies>
Error pages should be specified at src/main/resources/templates/error such as 404.html.
With Thymeleaf, the HTML pages can access the messages specified in property files. Create the application.properties in src/main/resources/templates with the following contents. The property files should have the language code at the end of the file name, separated by a underscore, such as .
# INTERNATIONALIZATION (MessageSourceAutoConfiguration)
spring.messages.basename=messages
spring.messages.cache-seconds=-1
spring.messages.encoding=UTF-8
Comments
Post a Comment