You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 18 Next »
웹프레임워크는 각기 다른 진영에서 상호 영향을 주며 발전을 해왔으며
사용방법의 차이일뿐, 모던한 웹 프레임워크는 거의 공통 요소를 가지고 있습니다.
어느것이 더 우월하고 그럴것없이 하나만 잘 사용하면 나머지도 자연스레 잘 활용할수 있게됩니다.
부가적 보너스로 아래 사항을 사전 고려할 예정입니다.
This calendar is read-only. Please ask your administrator to renew your Team Calendars subscription.
Error(s) occurred.
Warning(s) occurred.
Calendars with restrictions are embedded here.
Customise the different types of events you'd like to manage in this calendar.
#legIndex/#totalLegsOptionally, restrict who can view or add events to the team calendar.
#legIndex/#totalLegsGrab the calendar's URL and email it to your team, or paste it on a page to embed the calendar.
#legIndex/#totalLegsThe calendar is ready to go! Click any day on the calendar to add an event or use the Add event button.
#legIndex/#totalLegsSubscribe to calendars using your favourite calendar client.
#legIndex/#totalLegs
@Controller @RequestMapping(path="/") //이 클래스의 루트 Router를 설정한다. public class UserSearchAPI { }
@GetMapping(path="/usersearch") //이 멤버함수의 하위 주소를 설정한다. public @ResponseBody List<User> userSearch( @RequestParam String name, @RequestParam int pagenum, @RequestParam int pagesize ){ PageRequest pageReq = new PageRequest(pagenum, pagesize); Page<User> userPage =userPageRepo.findByNameContaining(name,pageReq); return userPage.getContent(); }
GET /rest/GameInfo GameInfo()
def GameInfo = Action { Ok( Json.toJson( "할롱") ) }
play run "9000"
참고: 리눅스에서 사용가능한 .net core 2.x 을 다룰예정입니다.
Get["/GameInfo/{tid}", runAsync: true] = async (_, token) => .......
public async Task<Response> GameInfo(int tourId){...}
var host = new NancyHost(new Uri("http://localhost:9000"); //Host 여러가지 선택가능,Nancy는 한가지 호스팅 방법임(IIS 종속을 없애기위해 NancyHost를 선택함) host.start()
app.use('/', routes);
router.get('/GameInfo', function(req, res, next) { res.send('respond with a resource'); });
server.listen(80, function () { console.log('Example app listening on port 80!'); });