Java
-
Java – obtain the currently logged in user from the spring angle
I use spring security in the spring boot application. I want to get the currently logged in user from the principal #g…… -
Unable to run program “…” error = 2, no such file or directory (Java)
I'm trying to create a java program that will set up an SSH connection for me on my MacBook It prompts me for a user n…… -
Comparing “queue” objects in Java
I am currently studying the properties of the queue interface and encounter the following declaration in Java document…… -
Java – gradle build error (Android studio 2.2.2)
I installed Android studio 2.2 with the necessary packages on Debian Jessie 2 and check for updates When the gradle bu…… -
How does Java 8 pass non functional methods as parameters
See English answers > java pass method as parameter 15 Class SimpleClass { methodA(var1,var2) { //body …… -
Database – Java multiple database connections in UserTransaction
static void clean() throws Exception { static void clean() throws Exception { final UserTransaction tx = InitialCont…… -
Error creating bean named ‘application’, unable to find default constructor; The nested exception is Java lang.NoSuchMethodException
I don't quite understand why this code gives me the error "can't find the default constructor" The constructor is @ Au…… -
How to replace two loops with a stream and keep the same elements in the list
Set <ShipperModel> shippers = baseSiteSerivce.getCurrentBaseSite().getStores().get(0).getShippers(); Set…… -
External parameters referenced by methods in Java 8
I want to pass external parameters to method references: String prefix = "The number is :"; numbers.forEach(Main::prin…… -
Add a table with borders for each cell in Javadoc
I know I can use HTML tags in Java documents How do I add a table with borders for each cell? I want the cells to alig…… -
Java – hibernate inheritance using different primary keys
I'm trying to use table_ PER_ Class policy creates inheritance, but I want to create a different primary key for each …… -
Typescript – async / await clarity, with sleep example
I tried to get async / await suspended through the following implementation, but it didn't work as expected public sta…… -
How do I use selenium java to display the selected option from the multi selection drop-down list?
I'm trying to display all the selected options from the multi - choice drop - down list But there is no right way to d…… -
How to apply some changes to each element in the list > structure using java 8 methods
I have some structures like list < < list < < double > > Listofdoubles I need to convert it to list …… -
Java 8 streams can use multiple projects in a mapping pipeline
I have some data stored in the JPA repository I'm trying to process I wish I could use Java 8 streams to do this, but …… -
Java – processrequest method
When is the processrequest method called? It's hard for me why, why and how to invoke process requests? The reason for…… -
Java – “do not allow exceptions to be caught” checkstyle Report
I'm generating a checkstyle report embedded in Maven site, and one of the problems is that it indicates that exception…… -
Java – (custom) exception of restauthenticationprocessingfilter ordering
I tried to add rest authentication to my application with a token public class RestAuthenticationProcessingFilter exte…… -
Kotlin – NoClassDefFoundError when using exposed
I use exposed as my database library. When I try to run my code, I encounter these errors: Exception in thread "main" …… -
Java – JUnit test cases for custom methods
I'm studying my first job interview as a junior java developer, and now I'm trying to learn JUnit test cases This is a…… -
Java – confused with constructors and subclasses
I can't understand the concept of using constructors with classes This is the parent class: public class A { publi…… -
Java – why does the heap memory usage graph look like this?
I have installed glowroot (Java application monitoring) for my JVM When my application is idle, I get this form of mem…… -
Java – save the data in the clip in the screen rotation in Android
Can anyone help me solve my problem? I have one activity and six clips A clip contains a link to my mediaplayer class,…… -
Java – Google arcore domain model example
I am trying to read and understand the domain model of Google arcore, especially the Android SDK package At present, t…… -
Java-8 – the java8 metaspacesize flag does not work
I have a simple test code that sets - XX: metaspacesize and - XX: maxmetaspacesize to the same value I don't think Met…… -
Multithreaded (c) program threads cannot be terminated
I'm trying to complete a program that uses multiple threads (3) to distribute $4000 hypothetical scholarships Every ti…… -
Android – get notification title
How do I get the title of the notification? This is my code: – from notification service: resultIntent= new Intent(Not…… -
Java – why can’t I import appium if it’s in my gradle dependency?
I'm building with IntelliJ Community Edition with gradle This is my build gradle deps: dependencies { testCompile…… -
Java – request getRequestDispatcher(). Forward create a new thread?
I have a use case that schedules requests by setting some properties and pruning the request URL to the same context W…… -
Java – spring data Cassandra: how to use composite keys to query tables?
I have the following families: @Table(value = "request_event") public class RequestEvent { @PrimaryKeyColumn(name…… -
Java – removes the space between the toolbar and tabrayout
I have an appbarlayout with tablayout, which is located in the activity with toolbar But there is a space between the …… -
Java – use spring batch to parse dates from files to localdatetime
I'm trying to read a CSV file with a date using spring batch, but I can't resolve the date to a localdatetime object: ……