In this tutorial I will explain step by step how to create from scratch a working Spring Boot MVC application, with JSP, using Maven and configure Visual Studio Code in order to develop and debug while using Hot Swap feature.
Showing posts with label java. Show all posts
Showing posts with label java. Show all posts
Saturday, June 30, 2018
Java Spring Boot MVC and JSP with Maven and Visual Studio Code
In this tutorial I will explain step by step how to create from scratch a working Spring Boot MVC application, with JSP, using Maven and configure Visual Studio Code in order to develop and debug while using Hot Swap feature.
Saturday, December 3, 2016
Hibernate - Cannot insert explicit value for identity column in table 'MYTABLE' when IDENTITY_INSERT is set to OFF
When using Hibernate targeting an SQL Server database could happen to have the error "Cannot insert explicit value for identity column in table 'MYTABLE' when IDENTITY_INSERT is set to OFF".
Here is how to deal with that.
Sunday, September 13, 2015
Maven copy configuration file or resource in target classes directory
Although building a maven project you have to use a specific directory for resources, there are some cases that you have to keep a resource in a different directory. If you put a .properties file in src or into a java package, maven will not copy that file in the target classes directory, so in your deployment package it will not be present. Here is the procedure to force the copy and make it works.
Sunday, March 8, 2015
Maven, create an executable jar with all dependencies
You want to package your java application, i.e a console application, into a single jar that you can easily run from command line. Assume you have used Maven as dependency manager, here is the needed configuration.
Thursday, January 1, 2015
Install Oracle TopLink in Maven local repository
Oracle TopLink is not available in any online repository. In order to use it in a maven project you have to install these libraries in a local maven repository. Here is the procedure to download and install them.
Wednesday, December 31, 2014
Configure JNDI Mail Session with WebLogic and Spring, Gmail
In this tutorial I will explain how to configure a JNDI mail session using Oracle WebLogic 12c and Spring Framework and how to send email from a Java web application. In this example we will use GMail as smtp service.
Saturday, September 20, 2014
Create a Vaadin Portlet for Liferay
In this tutorial will be explained how to create a Vaadin Portlet for Liferay Portal from scratch.
We will use Eclipse Juno (but it applies to next versions as well), a Liferay Portal installation (version 6.1 in this tutorial) and the RIA framework Vaadin.
We will use Eclipse Juno (but it applies to next versions as well), a Liferay Portal installation (version 6.1 in this tutorial) and the RIA framework Vaadin.
Liferay Tomcat as windows service
When Liferay Portal is bundled with Tomcat, it can be started as a windows service, so it can be automatically started at computer startup, without being logged in as windows user and without manually start through "startup.bat".
The procedure applies to a normal Tomcat installation as well, also without Liferay Portal.
The procedure applies to a normal Tomcat installation as well, also without Liferay Portal.
Thursday, August 14, 2014
Vaadin style not being applied to textfield
I noticed that the issue was just on a TextField and I realized that the method "focus" strangely makes the style disappear.
Subscribe to:
Posts (Atom)