Differences
This shows you the differences between two versions of the page.
|
java:new-app-v2 [04/10/2017 11:36] Anthony Arents |
java:new-app-v2 [14/12/2017 12:33] (current) Anthony Arents [Tracking versions] |
||
|---|---|---|---|
| Line 9: | Line 9: | ||
| * Netbeans project | * Netbeans project | ||
| * Maven | * Maven | ||
| - | * Spring (latest -> 4.3.11.RELEASE) | + | * Spring (latest -> 4.3.12.RELEASE) |
| * Spring Security (latest -> 4.2.3.RELEASE) | * Spring Security (latest -> 4.2.3.RELEASE) | ||
| - | * Hibernate (latest -> 5.2.11.Final) | + | * Hibernate (latest -> 5.2.12.Final) |
| * Javamelody (latest, developer tool, used for statistics) | * Javamelody (latest, developer tool, used for statistics) | ||
| * ExtJS 6 | * ExtJS 6 | ||
| Line 24: | Line 24: | ||
| https://www.artifact-listener.org/\\ | https://www.artifact-listener.org/\\ | ||
| \\ | \\ | ||
| - | My list (on the right of the screenshot) | + | My list (on the right of the screenshot)\\ |
| - | {{:java:screenshot-www.artifact-listener.org_2017-07-06_11-41-02.png?nolink|}} | + | {{:java:screenshot-www.artifact-listener.org_2017-07-06_11-41-02.png?nolink&600|}} |
| \\ | \\ | ||
| Line 2846: | Line 2846: | ||
| </code> | </code> | ||
| + | ===== Presentation (Ajax, MultiActionController) ===== | ||
| + | |||
| + | use requestmapping to map based on action parameter | ||
| + | |||
| + | <code java> | ||
| + | package de.jcpis.analyse.presentation; | ||
| + | |||
| + | import org.apache.logging.log4j.LogManager; | ||
| + | import org.apache.logging.log4j.Logger; | ||
| + | import org.springframework.beans.factory.annotation.Autowired; | ||
| + | import org.springframework.stereotype.Controller; | ||
| + | import org.springframework.web.bind.annotation.RequestMapping; | ||
| + | import org.springframework.web.context.request.WebRequest; | ||
| + | import org.springframework.web.servlet.ModelAndView; | ||
| + | import org.springframework.web.servlet.view.json.MappingJackson2JsonView; | ||
| + | |||
| + | /** | ||
| + | * | ||
| + | * @author anthonyarents | ||
| + | */ | ||
| + | @Controller | ||
| + | @RequestMapping("/bankverbindung.json") | ||
| + | public class BankverbindungController { | ||
| + | |||
| + | @RequestMapping(params = "action=validateBankverbindung") | ||
| + | public ModelAndView validateBankverbindung(final WebRequest hsr) { | ||
| + | } | ||
| + | } | ||
| + | </code> | ||
| ===== Presentation (Restcontroller) ===== | ===== Presentation (Restcontroller) ===== | ||
| Line 4192: | Line 4221: | ||
| [[https://letsencrypt.org/]] free certificate provider (certificate is 90 days with auto renewal)\\ | [[https://letsencrypt.org/]] free certificate provider (certificate is 90 days with auto renewal)\\ | ||
| - | [[https://certbot.eff.org/]] easy AUTOMATIC install | + | [[https://certbot.eff.org/]] easy AUTOMATIC install \\ |
| + | \\ | ||
| + | the certbot-auto script is usually placed in ''/usr/share/'' (as seen in crontab)\\ | ||
| + | |||
| + | ==== Quick way to add domains ==== | ||
| + | you can simply boot the script :\\ | ||
| + | ''cd /usr/share/''\\ | ||
| + | ''sudo ./certbot-auto''\\ | ||
| + | the interface will then present you with the options you can provide a certificate for, it's 1 certificate for all urls you select. | ||
| ===== provide for normal domains ===== | ===== provide for normal domains ===== | ||
| ''sudo ./certbot-auto --apache'' | ''sudo ./certbot-auto --apache'' | ||