전체 글 1653

[기계적 인조 인간] SQLITE로 로그인 페이지 생성

데이터베이스를 여러 번 만들고 있습니다. 데이터베이스 생성을 SQLiteOpenHelper 클래스로 이동하고 사용하려는 활동에서 인스턴스를 생성하기 만하면됩니다. ------------------- 이것에서 당신은 테이블 열을 변경하여 데이터베이스 버전을 1에서 2로 변경했다는 실수를 저질렀습니다.해야 할 일은 SQLiteOpenHelper 클래스 파일에 있습니다. public void onUpgrade(SQLiteDatabase _db, int _oldVersion, int _newVersion) { Log.w("TaskDBAdapter", "Upgrading from version " +_oldVersion + " to " +_newVersion + ", which will destroy all ol..

카테고리 없음 2021.03.02

[자바 스크립트] Spring MVC에서 Ajax 구현

url : "AddUsers.htm"을 url : "$ {pageContext. request. contextPath} /AddUsers.htm"로 변경하고 시도하십시오. ------------------- 당신이 부르는 URL은 이것입니다 type: "POST", url: "AddUsers.htm", POST 인 컨트롤러 방법은 GET입니다. 405 오류를 Hecne, 지원되지 않는 방법입니다. ------------------- POST 요청을 보내려고했지만 메서드 호출을 GET 메서드로 매핑했습니다. @RequestMapping(value = "AddUsers.htm", method = RequestMethod.GET) 변경하려고 RequestMethod.GET에 POST 출처 https://sta..

카테고리 없음 2021.03.02

[자바] 둥근 대괄호 감지를위한 정규식

확실히 잘 작동합니다 ... 일치하는 문자열에 대해 테스트하면 :) 문제는 대문자로"Student (male): John" 시작 하고 소문자 를 일치 시키려고한다는 것 입니다. 그것은 얻는 것만 큼 간단합니다! S s 또는 다음 [()]중 하나와 일치 하는 데 사용할 수 있습니다 .() p = p.replaceAll("[()]", "\\\\$0"); 그건 그렇고, 나는 또한 당신이 줄을 바꿀 수 있음을 지적합니다. p = p.replaceAll("\\(", "\\\\("); p = p.replaceAll("\\)", "\\\\)"); 다음을 사용하면됩니다. p = Pattern.quote(p); 건배! ------------------- 다음은 원하는 작업을 수행하지 않습니다. p = p.replaceA..

카테고리 없음 2021.03.02

[자바] Java에서 JsonArray 형식의 문자열에서 JsonArray를 어떻게 변환 할 수 있습니까?

이 라이브러리를 사용하여 이렇게 String jsonArrayStr="[{test1:'test',test2:2,test3:'test3'},{test1:'test',test2:2,test3:'test3'}, {test1:'test',test2:2,test3:'test3'}]"; JSONArray jrr = new JSONArray(jsonArrayStr); ------------------- "java"및 "jquery"태그와 혼동을 일으키고 있습니다. "JavaScript"를 의미 했습니까? Java는 jQuery와 관련이 없기 때문에 .... JavaScript를 의미하는 경우 이것이 해결책이 될 수 있습니다. var jsonArrayStr = "[{test1:'test',test2:2,test3:'t..

카테고리 없음 2021.03.02

[mysql] 세 단어 이상으로 구성된 모든 고객 이름을 찾습니다 (예 : King George V).

MySQL 솔루션 : a name에 공백 문자로 구분 된 단어가있는 경우 다음을 시도하십시오. select name from customers where ( length( name ) - length( replace( name, ' ', '' ) ) + 1 ) >= 3 ------------------- t-sql에서 like 절은 여러 와일드 카드 검사를 포함 할 수 있습니다. 예 : SELECT * FROM Customers WHERE Name like '% % %' 두 개의 공백이 포함 된 이름을 반환합니다. ------------------- 이름 사이의 간격이 일치하면이 논리를 사용할 수 있습니다. SELECT LENGTH(name)-LENGTH(REPLACE(name,' ','')) FROM ..

카테고리 없음 2021.03.02

[c#] 도메인 레이어 안에 Entity Framework가 있어도 괜찮습니까?

PS: i don't want to over complicate the project by adding IRepositories interfaces which would probably allow me to keep EntityFramework and Domain separate. its really a bad idea, once i had this opinion but honestly if you dont program to abstraction it will become a pain when the project becomes larger. (a real pain) IRepositories help you spread the job between different team members also. i..

카테고리 없음 2021.03.02

[파이썬] 한 번에 pandas 데이터 프레임의 여러 열에 함수를 적용하는 방법

You can do df[['Col1', 'Col2', 'Col3']].applymap(format_number). Note, though that this will return new columns; it won't modify the existing DataFrame. If you want to put the values back in the original, you'll have to do df[['Col1', 'Col2', 'Col3']] = df[['Col1', 'Col2', 'Col3']].applymap(format_number). ------------------- 다음 apply과 같이 사용할 수 있습니다 . df.apply(lambda row: format_number(row), axi..

카테고리 없음 2021.03.01

[c#] 도메인 레이어 안에 Entity Framework가 있어도 괜찮습니까?

PS: i don't want to over complicate the project by adding IRepositories interfaces which would probably allow me to keep EntityFramework and Domain separate. its really a bad idea, once i had this opinion but honestly if you dont program to abstraction it will become a pain when the project becomes larger. (a real pain) IRepositories help you spread the job between different team members also. i..

카테고리 없음 2021.03.01