Posts by rnd_rss • 1,075 points
43 posts
-
3
votes2
answers53
viewsA: Show a missing address
You have to use Integer, not the primitive type int and yes the Wrapper, to be able to return a null, then your code will look like this: public class Main { public static void main(String[] args) {…
-
0
votes1
answer256
viewsA: Application normally runs on Tomcat embedded in Spring Boot and does not run on Tomcat on my Server
To run on external Tomcat you have to do two things: 1 - Include dependency in your pom.xml - Already done in your case <dependency> <groupId>org.springframework.boot</groupId>…
-
1
votes1
answer410
viewsA: Vuejs 2.0 v-model conflicting with v-bind:value on different elements
This is really the behavior of the directives, remember that only the v-model has two way data Binding, that is if you change the input or the value that is in your date Vue keeps them…
-
8
votes2
answers758
viewsA: What is Fat JAR?
The fat jar, contains in addition to your code, all the dependencies that it needs to run, ie it takes your code plus the dependencies of your project and all this is bundled to a single file jar,…
-
5
votes2
answers642
viewsA: What is SQL dialect 1 and dialect 3?
Firebird supports 3 SQL dialects on both server and client. These differ in date-time format and number accuracy. Dialects serve to instruct the firebase server on how to process legacy Borland…
-
3
votes2
answers3730
viewsA: CORS: Response to preflight request doesn’t pass access control check: It does not have HTTP ok status
You have to release CORS on the server, there is a policy/configuration in browsers that when you go to make a request first sends an OPTIONS to the server to know what is released, in Postman this…
-
0
votes1
answer2449
viewsA: com.google.gson.Jsonsyntaxexception: java.lang.Illegalstateexception: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
The first line of the stacktrace already says what the problem is: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path…
-
1
votes1
answer76
viewsA: Importing backup from Postgresql to Mysql Workbench
You can use the pg_dump that comes with postresql, with the command below without specifying the name of the database a file will be created. sql in the directory you are with the sql that is in the…
-
1
votes1
answer84
viewsA: Vuejs component error, currency converter
As the error already says inside the template there should be exactly one parent element. Today you have 4 elements <h2>{{moedaA}} Para {{moedaB}}</h2> <input type="text"…
-
2
votes2
answers211
viewsA: Javascript function for splitting returning Nan
You are calling the wrong function, you have to separate the parameters by comma: var divicao = function (valor1, valor2){ var resultado = valor1 / valor2; return resultado; } //so coloquei para um…
-
1
votes2
answers150
viewsA: Make Insert with foreign key
The first two lines already say what the problem is: org.postgresql.util.PSQLException: ERROR: insert or update on table "agendamento" violates foreign key constraint "fk_cliente" Detalhe: Key…
-
4
votes4
answers2052
viewsA: Is Ecmascript 6 supported by current browsers?
When I want to know if I can use this or that feature and which browsers support and which versions of browsers support I usually use the site https://caniuse.com, for example the Ecmascript6 you…
-
2
votes2
answers1811
views -
1
votes1
answer408
viewsA: How to Design Spring Boot?
Import project into STS: Package Explore in an empty part right-click on Import... It will open a window, in it you open the option Maven and selects Existing Maven Projects and click on Next Click…
-
2
votes1
answer623
viewsA: Visual Studio Community, Professional and Enterprise
Here is a picture of Microsoft itself with the differences: More details on the link: https://visualstudio.microsoft.com/pt-br/vs/compare/…
-
0
votes1
answer48
viewsA: View error
The easiest way is to put in Intent via putExtra and pick up the initiated Activity, I saw that you are doing this but do not have the code of the second Activity where you recover the values, can…
-
1
votes1
answer210
viewsA: Remove the notification "App is running in background"
From android 8 Google changed a number of things involving services on android. I advise to take a look at the documentation as it has had several changes:…
-
1
votes1
answer43
viewsA: Replace Android app already published
Yes, you can do this but have two requirements: It has to be the same package as the previous project, the package is used as the identifier of your app, so if it changes google play will understand…
google-playanswered rnd_rss 1,075 -
1
votes1
answer52
viewsA: Custom Authentication with Spring Security
As you did not give details there is no way to give a specific answer so the answer will be generic, you will have to implement the interface AuthenticationProvider Example: @Component public class…
spring-securityanswered rnd_rss 1,075 -
0
votes3
answers1314
viewsA: How to handle different date formats?
I don’t know if it’s feasible for your project to change the date data type but I’ll explain how I work with dates and I don’t have these problems that you’re having. Always when working with date I…
-
0
votes1
answer34
viewsA: Angular JS Expressions does not work?? The value 10 does not appear and Work? appears with keys. Help!
Remove the ? of <p>{{ Work? }}</p>, he is causing the error: Error: "[$parse:ueoe] http://errors.angularjs.org/1.7.8/$parse/ueoe?p0=Work%3F" Angular 42 angular.js:15567:15 For more…
-
3
votes1
answer56
viewsA: How to take a value from a Static method
I don’t know if I understood exactly what you wanted, but wouldn’t it just return vtc in the search_bin method? I also changed what is being saved in txt, this marked in the code where I changed.…
-
0
votes1
answer93
viewsA: CORS blocks the requests
Try this way, go to your configuration class, this class is annotated with @Configuration if you don’t have create one, and create the following Bean: @Bean public CorsFilter corsFilter() { final…
-
6
votes2
answers894
viewsA: How to return a "not found" feature in Spring?
I see two ways to do what you want: 1 - Same as @Tom Melo commented @RequestMapping(value = "/{id}", method = RequestMethod.GET) public ResponseEntity<?> buscar(@PathVariable("id") Long id) {…
-
6
votes2
answers820
viewsA: Difference between non-relational database models
I actually know four major types: Key value: is precisely what the name describes you have a key and a value, the use is usually for cases where you do searches only by key, it is not possible to…
-
0
votes1
answer1246
viewsA: Error: illegal Character ' ufeff' - encoding "UTF-8 without BOM"
Try to take a replace on all the files at once by android studio same. Search for ufeff and leave replace blank Menu Edit >> Find >> Replace in Path --- Edit I think maybe less work,…
-
0
votes2
answers2385
viewsA: How to call a method of one class in another class
I couldn’t understand very well what you want to do, but as you said you want to learn I’ll try to explain in a generic way. It has two means of you calling methods of a class: 1 - Instantiated it…
-
0
votes2
answers225
viewsA: Publish app in Xamarin for Android 5 on Google Play
That’s right, the minimum version currently is 8, you will not be able to send apps with previous versions. Source: Every APK has a targetSdkVersion in the manifest file, also known as the desired…
-
0
votes2
answers234
viewsA: Spring boot keeps session open
I don’t necessarily see this as a problem, when it goes up the application already opens a pool of connections to not have to open when you need, the configuration of this depends on how your setup…
-
0
votes1
answer180
viewsA: Scriptcase port 8090 external access
Does this server run into the Internet or does it have a modem between them? If you have a modem you have to configure the port NAT, IE, you have to configure that when you access port 8090 it has…
-
0
votes1
answer76
viewsA: Fix files not tracked or deleted in cloned repository
If you want to undo these changes do the following: git checkout index.htm img/del/mix.jpg will "restore" those two files, ie it will look the same when you cloned the The archives:…
-
0
votes1
answer474
viewsA: How to enable mysql Workbench connection manually
You need to install the mysql server separate from xampp. 1 - mysql download, https://dev.mysql.com/downloads/mysql/ 2 - install After installing will appear the mysql service in your service…
-
1
votes1
answer47
viewsA: KEYBOARD DECREASES TO SETAR android:inputType="number""
This is the behavior. When configuring the input type for number android automatically opens the numeric keyboard, or changes from the full keyboard to the numeric, if you do not want this behavior…
-
0
votes2
answers613
viewsA: Change bar colors in javascript chart
You should set the color when you set the data set: series: [{ "colorByPoint": true, data: [{ color: '#0066FF', // aqui vai a cor que você quer, o hexadecimal no caso "name": "Coluna 1", "y":…
-
0
votes1
answer127
views -
1
votes1
answer31
viewsA: Publish to playStore
With the same ID you won’t get, the id more precisely the package of the project, is the unique identifier of your app, may have applications with the same name but not with the same package. I am…
-
0
votes1
answer432
viewsA: Hibernate Does Not Change Automatically in Database
Your ddl-auto is configured for update, that is, Hibernate will compare what is in your bank with the templates and generate the changes cfme the templates. To disable this you have to change the…
-
2
votes1
answer63
viewsA: "Annotations are not allowed here" when using @Click on android studio
There’s a key left on this @Click, try it like this: @EActivity(R.layout.activity_login) public class Login extends AppCompatActivity { @ViewById(R.id.senha) private EditText senha;…
-
1
votes1
answer202
viewsA: Doubt about file generated after using npm run build with Vue-cli + webpack
The . map files are auxiliary javascript and css files (and now also ts) that were minified. They are called Sourcemaps. When you minify a file, like the app.js file, it picks it up thousands of…
-
1
votes1
answer9028
viewsA: No connection can be made because the target machine actively refused them. XAMPP
From what I understand, everything works fine on your machine, but on other machines it doesn’t work and mysql is on your machine, is that it? If so, the error seems to be caused by missing mysql…
-
5
votes3
answers4843
viewsA: For a search with no results, should the HTTP response be 404, 204 or 200 with an empty body?
I would use 404 as well, because according to rfc rfc7231 that defines HTTP codes this code refers to a resource that was searched on the server and was not found, so it is not limited to invalid…
-
0
votes1
answer57
viewsA: Error 403 in Android project with Webservice using Wampserver
As Ricardo said try to access the URL from the browser, the same that you are trying to access from the app, if return 403 is problem access folder or permissions of your php program. To release the…
-
0
votes2
answers678
viewsA: Payment by android card
The best Api to integrate is relative, the best is the least work? Which has the lowest rate ? I couldn’t find anything in the payment/fee documentation to integrate, then you will probably pay only…