This file contains hidden or 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 com.qbiel.conn; | |
import org.apache.log4j.Logger; | |
import com.jcraft.jsch.*; | |
public class SftpConn { | |
//log4j | |
static Logger logger = Logger.getLogger(SftpConn.class); | |
private static final String HOST = "127.0.0.1"; | |
private static final int PORT = 22; | |
private static final String USER = "adil"; |
This file contains hidden or 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
//ExampleController.java | |
@Controller | |
public class ExampleController { | |
@RequestMapping(value = Routes.MTS.HOME, method = RequestMethod.GET) | |
public String home(ModelMap modelMap) { | |
modelMap.put("menu", "home"); | |
return Routes.MTS.VIEW_HOME; | |
} | |
@RequestMapping(value = Routes.SADARIAH.HOME, method = RequestMethod.GET) | |
public String home(ModelMap modelMap) { |
This file contains hidden or 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
//MainDota.java | |
public class MainDota { | |
public static void main(String[] args) { | |
Hero hero1 = new Hero(); | |
hero1.setId(1); | |
hero1.setName("Huskar"); | |
hero1.setAbility(EnumAbility.STRENGTH.getAbility()); | |
Hero hero2 = new Hero(); | |
hero2.setId(2); |
This file contains hidden or 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
public class Employee { | |
private String id; | |
private String firstName; | |
private String lastName; | |
private String address; | |
private int age; | |
//setter getter are hidden | |
} | |
NewerOlder