WildFly 8.2.0 on Ubuntu 14.04
sudo -s root
cd /opt
groupadd wildfly
adduser --no-create-home --disabled-password --disabled-login wildfly
wget http://download.jboss.org/wildfly/8.2.0.Final/wildfly-8.2.0.Final.tar.gz
tar -xzvf wildfly-8.2.0.Final.tar.gz
ln -s wildfly-8.2.0.Final wildfly
chown -R wildfly.wildfly wildfly
chown -R wildfly.wildfly wildfly-8.2.0.Final
cd /etc/default
ln -s /opt/wildfly/bin/init.d/wildfly.conf wildfly
cd /etc/init.d
ln -s /opt/wildfly/bin/init.d/wildfly-init-debian.sh wildfly
service wildfly start
cd /etc/init.d
update-rc.d wildfly defaults
INSTALLING WILDFLY AS SERVICE on CENTOS, Fedora
PostgreSQL Datasource on WildFly 8.2.0
Friday, June 19, 2015
Show Code in Your Blog Using Github
Github as Syntax Highlighter for Blogs
Step 1: Create a public Gist at gist.github.com
Step 2: Embed your Gist : click the show embed link and copy-paste the script into your blog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.sample.springsecurity.controller; | |
import org.springframework.stereotype.Controller; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.bind.annotation.RequestMethod; | |
@Controller | |
public class LoginController { | |
@RequestMapping(value = "/logoutPage", method = RequestMethod.GET) | |
public String logoutPage() { | |
return "logout"; | |
} | |
@RequestMapping(value = "/loginPage", method = RequestMethod.GET) | |
public String loginPage() { | |
return "login"; | |
} | |
} |
Subscribe to:
Posts (Atom)