Spring boot Spring data and mysql docker container:
https://www.youtube.com/watch?v=vO7MNTXxbZ0
docker run --name some-mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:5.7.22 (select from docker images with Kitematic)
https://help.github.com/en/github/importing-your-projects-to-github/adding-an-existing-project-to-github-using-the-command-line | |
Create a new repository on GitHub. To avoid errors, do not initialize the new repository with README, license, or gitignore files. You can add these files after your project has been pushed to GitHub. | |
Create New Repository drop-down | |
Open Terminal. | |
Change the current working directory to your local project. | |
Initialize the local directory as a Git repository. | |
$ git init | |
Add the files in your new local repository. This stages them for the first commit. | |
$ git add . |
Code completion for custom properties in Spring Boot | |
May 16, 2015 | |
All three major IDEs (IntelliJ IDEA, Eclipse and Netbeans) provide either plugins or built-in features for code completion in application.properties files in a Spring Boot project: | |
Besides completion, you also see, that all properties are typed (and validated), and if present a Javadoc is shown. | |
Fortunately this feature can also be used for custom defined properties. There are 2 prerequisites for that: |
Spring boot Spring data and mysql docker container:
https://www.youtube.com/watch?v=vO7MNTXxbZ0
docker run --name some-mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:5.7.22 (select from docker images with Kitematic)
/** | |
* | |
*/ | |
package com.technoactivity.mymo.resource.external; | |
import com.sun.jersey.api.model.AbstractResource; | |
import com.sun.jersey.api.model.AbstractResourceMethod; | |
import com.sun.jersey.api.model.AbstractSubResourceMethod; | |
import com.sun.jersey.server.impl.modelapi.annotation.IntrospectionModeller; | |
import com.technoactivity.mymo.resource.BaseResource; |
/** | |
* | |
*/ | |
package com.technoactivity.mymo.resource.external; | |
import com.sun.jersey.api.model.AbstractResource; | |
import com.sun.jersey.api.model.AbstractResourceMethod; | |
import com.sun.jersey.api.model.AbstractSubResourceMethod; | |
import com.sun.jersey.server.impl.modelapi.annotation.IntrospectionModeller; | |
import com.technoactivity.mymo.resource.BaseResource; |
/** | |
* | |
*/ | |
package com.technoactivity.mymo.resource.external; | |
import com.sun.jersey.api.model.AbstractResource; | |
import com.sun.jersey.api.model.AbstractResourceMethod; | |
import com.sun.jersey.api.model.AbstractSubResourceMethod; | |
import com.sun.jersey.server.impl.modelapi.annotation.IntrospectionModeller; | |
import com.technoactivity.mymo.resource.BaseResource; |
Differences between Join commands: | |
Just typing JOIN performs an INNER JOIN by default. | |
For all others, one picture is sometimes worth more than hundreds of words. See image bellow post: | |
thanks to :https://stackoverflow.com/questions/565620/difference-between-join-and-inner-join?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa |
Añadir una línea a un fichero en unix | |
add one line in a file unix command | |
ex -sc '1i|use batchdb' -cx payment.sql |
Warning !!! Be carefull hibernate: ddl-auto value. Not usefull to Production enviroments. Your data could be deleted!!!!!!!! | |
server: | |
port: 9090 | |
management: | |
port: 9091 | |
address: 127.0.0.1 | |
http: | |
mappers: |
http://docs.spring.io/spring/docs/current/spring-framework-reference/html/beans.html#beans-generics-as-qualifiers | |
Environment abstraction | |
The Environment is an abstraction integrated in the container that models two key aspects of the application environment: profiles and properties. | |
A profile is a named, logical group of bean definitions to be registered with the container only if the given profile is active. Beans may be assigned to a profile whether defined in XML or via annotations. The role of the Environment object with relation to profiles is in determining which profiles (if any) are currently active, and which profiles (if any) should be active by default. | |
Properties play an important role in almost all applications, and may originate from a variety of sources: properties files, JVM system properties, system environment variables, JNDI, servlet context parameters, ad-hoc Properties objects, Maps, and so on. The role of the Environment object with relation to properties is to provide the user with |