Questions tagged as 'java'

1
answer

login with spring boot using jdbc

How can I authenticate in spring boot using jdbc auth .jdbcAuthentication() .dataSource(dataSource).passwordEncoder(new Md5PasswordEncoder()) .usersByUsernameQuery("select username,password,enabled from user where u...
asked by 23.10.2017 / 02:23
1
answer

help with the android studio manifest please

please how do I have the two MyApplication and AppController classes in the manifest eye are not activitys are just classes that control in my app <uses-permission android:name="android.permission.INTERNET" /> <application and...
asked by 17.11.2017 / 01:26
0
answers

Access to SDCard Android memory

My goal is to be able to have an information backup that my app generates in a removable memory in Android and that persists even if I delete the app or delete the app's data from the application manager. I have the following problem, I try t...
asked by 16.11.2017 / 22:34
1
answer

org.springframework.beans.factory.UnsatisfiedDependencyException: No property a found for type -Spring

Controller @RequestMapping(value = "/login", method = RequestMethod.POST) public ResponseEntity<Object> login(HttpServletRequest httpServletRequest, @RequestParam("usser") String user, @RequestParam("password") double password) {...
asked by 30.10.2017 / 21:22
0
answers

@ContextConfiguration (classes = {TestContext.class, WebAppContext.class}) Submit an Error: WebAppContext can not be resolved to a type

package com.example.demo.controller; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mockito; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.cont...
asked by 21.10.2017 / 02:27
0
answers

what's wrong with this path that the double route brings me?

I get a relative path in this way String path = getClass().getResource("/META-INF/persistence.xml").toString(); and throws me this exception:    java.io.FileNotFoundException: C: \ Users \ Priojects \ Documents \ NetBeansProjects \ Jav...
asked by 02.11.2017 / 18:26
1
answer

Method in java does not work

I have a method in which I go through a char array, what I need is to go through the array and when I find the character I'm looking for, add a counter, the method enters but the condition of when the counter has a certain number is not met prin...
asked by 21.10.2017 / 14:32
1
answer

How to show a value of a ComboBox in javafx by passing a value?

friends I'm doing an application in javafx which has to perform the CRUD operations, now I have a combobox with the name typedocumento, now I capture the information and I keep everything well, when updating the data I could not make the combobo...
asked by 21.10.2017 / 05:49
0
answers

Craecion Agenda Medica in Java

I want to ask. I am doing a dental program in java but the agenda is not how to do it, I hope that by giving a day in the calendar it shows me the hours of that day to register the appointment, I do not know how to do the tables to make this act...
asked by 22.10.2017 / 12:11
1
answer

Error in java Exception in thread "main"

The error it presents is:    Exception in thread "main" java.util.NoSuchElementException: No line   found at java.util.Scanner.nextLine (Unknown Source). I have a readAddress method that gets the values of the class. This method is called...
asked by 21.10.2017 / 21:56