Search This Blog

Showing posts with label attribute. Show all posts
Showing posts with label attribute. Show all posts

Tuesday, June 16, 2020

Eclipse Spring boot - org.springframework.core.annotation.AnnotationConfigurationException: Attribute 'proxyBeanMethods'

1. Go to eclipse Help menu -> Eclipse marketplace.
2. find-> spring tools
3. select spring tools 4 -> install


4. on your spring boot application. keep only like below.
   @SpringBootApplication
   @ComponentScan ( "com.xxxx" )
5. on your pom.xml, change the parent tag

  
        org.springframework.boot
        spring-boot-starter-parent
        2.3.0.RELEASE
   


6. make sure all your spring-boot-xxx should be the same version 2.3.0.RELEASE

7. Exit eclipse and clear your workspace, re-import. compile and enjoy.

8. Also make sure all your jar related to spring is updated to recent version.


 

Sunday, April 12, 2020

Python Flask AttributeError: 'Request' object has no attribute 'is_xhr'

#. Remove flask and install recent version

    pip uninstall flask
    pip intall flask


#. Else, go to your requirements.txt remove the verions of your plugins/libraries.
   ex: flask=0.12.0
          to
         flask


Re run the requriements.txt and make sure all it is now in updated version.
#before uninstall manually and run the below command.

pip install -r requirements.txt


Thursday, December 10, 2015

Add - Remove Column in MongoDB


// add new column and with default value
db.order.update({}, {$set: {"status": 'NEW'}},{multi:true})

//remove a column
db.order.update({}, {$unset: {"status": ''}},{multi:true})

MongoDB - Update statement

//update
db.documentName.update({'_id': ObjectId('566136f3e4b03044bfb8b37e'),'attributeName':'existing-value'},{$set:{'sameAttributeName':'New-value'}})

sample

db.order.update({'_id': ObjectId('566136f3e4b03044bfb8b37e'),'status':'NEW'},{$set:{'status':'COMPLETE'}})







db.login.update({'_id': ObjectId('5667a7ffe4b04ebafe56122e'),'password':'','email':'','mobileNumber':''},{$set:{'password':'qwerty','email':'drvijayy2k2@gmail.com','mobileNumber':'9842088860'}})

Hit Counter


View My Stats