전체 글

전체 글

    Logger cannot be resolved to a type 해결책

    Logger cannot be resolved to a type 해결책

    pom.xml에 들어가서 log4j를 검색한후 runtime를 주석처리해준다. " target="_blank" rel="noopener">-->

    @RunWith(SpringJUnit4ClassRunner.class) 에러 해결법

    @Runwith import를 성공적으로 했는데 아직도 에러가 나는경우 SpringJUnit4ClassRunner를 import하지 않았기때문이다. import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 를 추가해주자

    @Setter Autowired cannot be resolved to a type 해결법

    @Setter Autowired cannot be resolved to a type 해결법

    위에 import org.springframework.beans.factory.annotation.*; 추가해보자

    The matching wildcard is strict, but no declaration can be found for element 'context:component-scan 해결법

    xmlns:context="http://www.springframework.org/schema/context" 추가 하고 xsi:schemaLocation에 http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd 를 추가한다.

    [Gmod Lua:문법] 1-7. 함수선언

    [Gmod Lua:문법] 1-7. 함수선언

    변수선언에 function을 넣으면된다. 전역은 local을 빼면되고 1. 지역함수 local funciton test() //do thing end 2. 전역함수 function test() //do thing end [메인으로 돌아가기]

    [Gmod Lua:문법] 1-6. 참거짓

    [Gmod Lua:문법] 1-6. 참거짓

    C에서는 0과 1을 통한 구분과, true false를 통해 구분이 가능했다. 루아에서는 0과 1을 통한 구분은 지원하지않으며, true false그리고 nil을 통해 구분할수있다. 한마디로 거짓은 false와 nil이다. [메인으로 돌아가기]

    [Gmod Lua:문법] 1-5. 테이블

    [Gmod Lua:문법] 1-5. 테이블

    루아의 테이블은 내부에 다중 값들을 저장가능하며, C언어 배열과 비슷한듯하다. 차이점이 있다면 테이블은 단순히 숫자, 문자열뿐많이 아니라 다른값도 들어갈수있다는것이다. (원문 : It's not just numbers or strings that can be used as keys) 하지만 공식 Gmod Lua 유저 위키에 따르면 게리모드 루아의 테이블은 nil 타입의 변수는 안된다고 한다. (원문 : keys can be any type of variable, except for nil) 구성은 Key와 Value로 이루어져있다. Key란? 루아의 테이블은 키와 값을 포함하고 있으며, 키는 값의 식별자이다. 다른 말로 표현하자면 모든 항목의 "인덱스(값)"이라고 할수 있다. 정리하자면 표의 항목은 "키..

    [Gmod Lua:문법] 1-4. 변수선언

    [Gmod Lua:문법] 1-4. 변수선언

    루아의 변수 선언 종류는 전역변수와 지역변수로 나뉜다. 그안에서 또 문자형, 숫자형, 실수형 등등 다 나뉜다. 아래 예제를 통해 쉽게 설명하겠다. ① 전역변수 전역 변수는 변수이름만 써주면된다. //문자열변수 선언 TempString = "변수값" //정수형변수 선언 TempInt = 0 ② 지역변수 지역 변수는 앞에 local을 붙여주면 된다. 나머지는 전역변수와 같다. //문자열 지역변수 선언 local TempString = "ㅎㅇ" //정수형 지역변수 선언 local TempInt = 0 [메인으로 돌아가기]