# .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener(){ public void onClick(DialogInterface dialog, int which) { result.confirm(); } }).create();

lamda

.setPositiveButton(android.R.string.ok, (dialog, which) -> { result.confirm(); }).create();

반응형

Fragment LiftCycle

https://developer.android.com/guide/components/fragments.html

반응형

'Mobile > Android' 카테고리의 다른 글

WebView <-> 안드로이드 통신  (0) 2016.08.20
ANDROID | WEBVIEW  (0) 2016.08.18
UI | android systemUI Handle  (0) 2016.08.17
UI | round shape  (0) 2016.08.08
android 원격 디버깅  (0) 2016.08.08

Using Immersive Full-Screen Mode

#ui https://developer.android.com/training/system-ui/immersive.html#sticky

ref) FullscreenFragment.java https://gist.github.com/gelldur/cf7ff0d0d026dbd743d0

#build code https://developer.android.com/reference/android/os/Build.VERSION_CODES.html#CUPCAKE

반응형

'Mobile > Android' 카테고리의 다른 글

WebView <-> 안드로이드 통신  (0) 2016.08.20
ANDROID | WEBVIEW  (0) 2016.08.18
ANDROID | Fragment LiftCycle  (0) 2016.08.17
UI | round shape  (0) 2016.08.08
android 원격 디버깅  (0) 2016.08.08
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="10dp" />
<solid android:color="@color/notify_background"/>
</shape>


반응형

'Mobile > Android' 카테고리의 다른 글

WebView <-> 안드로이드 통신  (0) 2016.08.20
ANDROID | WEBVIEW  (0) 2016.08.18
ANDROID | Fragment LiftCycle  (0) 2016.08.17
UI | android systemUI Handle  (0) 2016.08.17
android 원격 디버깅  (0) 2016.08.08



Debugging considerations


When debugging applications that use USB accessory or host features, you most likely will have USB hardware connected to your Android-powered device. This will prevent you from having an adb connection to the Android-powered device via USB. You can still access adb over a network connection. To enable adb over a network connection:

  1. Connect the Android-powered device via USB to your computer.
  2. From your SDK platform-tools/ directory, enter adb tcpip 5555 at the command prompt.
  3. Enter adb connect <device-ip-address>:5555 You should now be connected to the Android-powered device and can issue the usual adbcommands like adb logcat.
  4. To set your device to listen on USB, enter adb usb.


STEP 1.  컴퓨터 - 기기 USB 연결 상태에서  TCPIP 모드 진입 

 adb -d tcpip 5555


STEP 2. USB 연결 해제 후

adb connect 해당기기 ip:5555



STEP 3.  android studio 에서 원격디버깅' 버튼 클릭



* 재빌드 시에는  step2부터 다시 반복 


참고) https://developer.android.com/guide/topics/connectivity/usb/index.html

반응형

'Mobile > Android' 카테고리의 다른 글

WebView <-> 안드로이드 통신  (0) 2016.08.20
ANDROID | WEBVIEW  (0) 2016.08.18
ANDROID | Fragment LiftCycle  (0) 2016.08.17
UI | android systemUI Handle  (0) 2016.08.17
UI | round shape  (0) 2016.08.08

git, git hub # 3 git for eclipse














반응형

'CI&CD > Git' 카테고리의 다른 글

git, git hub # 2 gir for windows  (0) 2015.07.14
git, git hub # 1 start  (0) 2015.07.14

git, git hub # 2 gir for windows

반응형

'CI&CD > Git' 카테고리의 다른 글

git, git hub # 3 git for eclipse  (0) 2015.07.14
git, git hub # 1 start  (0) 2015.07.14

소스관리로 다른 것을 사용하고 있긴 하지만, 이건 테스트로 하는것이니 공부할 겸 github 사용하기로 함.


github : https://github.com/



sign in 하면 나오는 첫 메인 페이지


1. set up git : https://help.github.com/articles/set-up-git/

윈도우용  github 설치 https://windows.github.com/


예전에 잠깐 사용해 다른걸로 접근해 봤는데 tortoisegit 도 있다. tortoise 시리즈에 익숙하면 이걸 사용해도 될 듯!

나는 구분짓기 위해 그냥 Git for windows 로 사용...

참고) https://code.google.com/p/tortoisegit/


2.. Repositories 만들기






 


반응형

'CI&CD > Git' 카테고리의 다른 글

git, git hub # 3 git for eclipse  (0) 2015.07.14
git, git hub # 2 gir for windows  (0) 2015.07.14

Driver must not be null
  <property name="driver" value="com.edb.Driver" />

Cannot convert value of type [java.lang.String] to required type [java.sql.Driver] for property 'driver': no matching editors or conversion strategy found

<property name="driverClass" value="com.edb.Driver" />

java.lang.IllegalArgumentException: Cannot find class [com.edb.Driver]

 

1. 프로젝트 build path에 로컬경로로 넣어줌.

2. 로컬경로로 인식이 안되는 경우도 있다고 하여 webapp > WEB-INF > spring > lib 폴더 생성 > jdbc파일 추가

3. 프로젝트 build path로 위경로 인식함.

4. 안됨... 톰캣 이것저것만지다가

5. Run configration > classpath > User Entries > Add External JARs > jdbc 파일 추가 하니까 된다!!!!!

와ㅜㅜ이걸로보낸 시간이 얼마여............ㅜㅜ




There is no setter for property named 'seq' in 'class com.restful.test.model.Measure'


* Measure에 변수선언, set, get 등록 안함..

** extends 는 java에서는 변수명이 될 수 없음 (Syntax error on token "extends", invalid VariableDeclarator)

extends_etc로 변수명 선언



There is no setter for property named 'extends' in 'class com.restful.test.model.Measure'


sql.xml

 <result column="extends_etc" property="extends_etc"/>

바꾼 변수명으로 연결시켜줘야함.


====================== 이제 드디어 정상동작!! ===================================


HTTP Status 404 - /test/WEB-INF/views/lists.jsp

controller 에 return 값을 ##@#.jsp 명으로!

return "home";


HTTP Status 500 - An exception occurred processing JSP page /WEB-INF/views/home.jsp at line 24

Property 'values' not found on type com.restful.test.model.Measure


jstl 객체뿌려주는 곳에

        <td>${lists.date}</td> ->      <td>${lists.input_dt}</td>
        <td>${lists.extends}</td> -> <td>${lists.extends_etc}</td>

한번에 좀 바꿔줍시다!


====================== 이제 드디어 정상동작!! ===================================





근데 왜 values가 안나오지..?  

java 대소문자 구문한다... (확실한가... Values -> values 로 변경)


====================== 이제 드디어 정상동작!! ===================================


http://localhost:8080/test/list




반응형

Barman  : Backup and recovery manager for PostgreSQL (DB Query log Backup Program)

 

Barman

Allows your company to implement disaster recovery solutions for PostgreSQL databases with high requirements of business continuity.Taking an online hot backup of PostgreSQL is now as easy as ordering a good espresso coffee.Version 2.9 (1 Aug 2019)| Releas

www.pgbarman.org

 

CREATE TABLE measures (
    seq   SERIAL   CONSTRAINT firstkey PRIMARY KEY,
    key        varchar(40) not null ,
    values    varchar(200) not null,
    input_dt   date not null,
    extends  varchar(100) 
    
);

DROP TABLE P_TEST

select * from measures

insert into measures (key, values, input_dt, extends) values('TE' , '36.5℃', NOW(), '');
 

 

http://www.postgresql.org/docs/9.4/static/sql-insert.html

 

PostgreSQL: The world's most advanced open source database

PostgreSQL is a powerful, open source object-relational database system with over 30 years of active development that has earned it a strong reputation for reliability, feature robustness, and performance. There is a wealth of information to be found descr

www.postgresql.org

 

반응형

BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext

    <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-beans</artifactId>
            <version>${org.springframework-version}</version>
        </dependency>


Injection of autowired dependencies failed
Could not autowire field
@Repository("iMeasureDAO") 잘못선언되어잇었음       


Result Maps collection does not contain value -> Could not find result map com.spring.myapp.book.model.Measure] with root cause
Result Maps collection does not contain value for com.restful.test.model.Measure

    <resultMap  id="AllMemberList" type="com.restful.test.model.Measure"> 
               <result column="seq" property="seq"/>
               <result column="key" property="key"/>
               <result column="contents" property="contents"/>
               <result column="input_dt" property="input_dt"/>
               <result column="extends" property="extends"/>
        </resultMap>
       
        <!-- parameterType="int"  where seq = #{seq} -->
       
        <select id="getMeasureList" resultMap="AllMemberList" >
               select seq, key, values, input_dt, extends
               from measures
        </select>

위에 부분을 지정안해줌
http://hyeonstorage.tistory.com/283



반응형

https://jdbc.postgresql.org/documentation/publicapi/org/postgresql/ds/PGConnectionPoolDataSource.html

property 확인


In any case, in order to use this ConnectionPoolDataSource, you must set the property databaseName. The settings for serverName, portNumber, user, and password are optional. Note: these properties are declared in the superclass.




No bean class specified on bean definition - Spring Forum

http://stackoverflow.com/questions/20544963/java-lang-illegalstateexception-no-bean-class-specified-on-bean-definition



nested exception is java.lang.ClassNotFoundException: com.edb.ds.PGConnectionPoolDataSource




Could not load properties; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/dbpool.properties]



반응형

 



postgreSQL Database Cluster Initialisation Failed... 

문제
계속 이래서 왜그런지 몰랐는데... 
보안때문에 특정 폴더 예)Programs files 같은 폴더에 생성이 안되도록 하는 것이 있단다.. 윈도우 vista 이후에서부터는...
그래서 관리자 권한으로 실행해도 안되고,, 계속 database cluster 만들때 오류가 났던것...

해결
* Data Directory 와 WAL Directory를 c:\Programs Files\ 로 하지말고, 다른 경로에 지정하자! 그럼 해결^.^

참고

http://www.geekscribes.net/blog/2009/04/22/postgresql-database-cluster-initialisation-failed-solution/

반응형

The ResourceConfig instance does not contain any root resource classes.


web.xml 안에 

 <servlet-name>Jersey Web Application</servlet-name>

  <url-pattern>com.pretech/*</url-pattern> 


위에 구조가 package 이름과 맞춰져야 한다. 

반응형

'Backend > Java&Spring Framework' 카테고리의 다른 글

ppas  (0) 2015.07.09
postgreSQL Database Cluster Initialisation Failed....  (0) 2015.07.08
'Building workspace' has encountered an error  (0) 2015.07.01
JSTL c:forEach  (0) 2013.01.25
jsonObject의 해당값 접근하기  (0) 2013.01.23

'Building workspace' has encountered an error"




Errors occurred during the build.

Errors running builder 'Maven Project Builder' on project 'RESTJerseyExample'.

Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6

Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6

Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6

Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6

반응형

+ Recent posts