GitLab 15.2 was corrupted due to whatever reasons...
2022-08-22
Corrupted GitLab 15.2 was back to online.
GitLab 15.2 was corrupted due to whatever reasons...
2022-08-16
2022-08-03
Resolved: has been injected into other beans in its raw version as part of a circular reference
- https://www.baeldung.com/circular-dependencies-in-spring#2-use-lazy
- https://blog.51cto.com/u_13478207/3336383
has been injected into other beans in its raw version as part of a circular reference, but has eventually been wrapped. This means that said other beans do not use the final version of the bean. This is often the result of over-eager type matching - consider using 'getBeanNamesOfType' with the 'allowEagerInit' flag turned off, for example.
@Service
@Service
@Service
then will hit the exception while maven run the application locally/at server.
@Service
2022-08-01
Keycloak 18.0.2
HTTP Error
clientId missing
[KEYCLOAK] Usage of legacy style promise methods such as `.error()` and `.success()` has been deprecated and support will be removed in future versions. Use standard style promise methods such as `.then() and `.catch()` instead.
has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
2022-07-27
Upgrade Spring Boot from 1.5.20.RELEASE to 2.7.2
Stacks
Version
Changes
- pom.xml
- CSRF - default implementation of Spring Security
- JSP
- Controllers
- Services
- Repo
- Batch Save
- Batch Delete
- Delete
- FindOne
- Pageable
- application.properties
pom.xml
Added
Modified
CSRF - default implementation of Spring Security
Controllers:
Changed
Services
Batch Save
findOne
Delete
Pageable
application.properties
Added
Changed
2022-07-21
ajax, upload file, json string, Spring Controller, DTO
Googled: json to dto spring boot controller
Resolved by follow the example on:
Spring Boot controller - Upload Multipart and JSON to DTO
Ajax Javascript
formData.append( 'dtoName', new Blob([JSON.stringify(dtoJavascriptObject)], {type: "application/json"}));
Spring Controller parameter
@RequestPart ManualGenerateCsv dtoName
couldn't parse json attribute to java object attribute.
private boolean isRequiredFtpToSSS;
Jackson JSON parsing from string to date.
jquery 3.3.1 change checkbox checked
Found:
the one i'm using.
But i remember there are more elegant way to do the same thing....
Jquery Datepicker: click on a checkbox, then open/pop datepicker of a textbox.
click on a checkbox, then open/pop datepicker of a textbox.
2022-07-13
全 #Lesley [Legend V] #MVP 7.7/6 4 6 | $13383 202206142025
全 #Lesley [Legend V] #MVP 7.7/6 4 6 | $13383 202206142025 https://youtu.be/tnp0nELuY8Q via @YouTube #MLBB
Java does new instance consume many memory
Found: https://stackoverflow.com/a/258150
Measurement methods
You can use Instrumentation.getObjectSize() to obtain an estimate of the storage consumed by an object.
eclipse maven "JUnit" "javaagent"
eclipse maven "JUnit" "javaagent"
Found this:
You can use ea-agent-loader
With it loading an agent in runtime will look like:
public class HelloAgentWorld
{
public static class HelloAgent
{
public static void agentmain(String agentArgs, Instrumentation inst)
{
System.out.println(agentArgs);
System.out.println("Hi from the agent!");
System.out.println("I've got instrumentation!: " + inst);
}
}
public static void main(String[] args)
{
AgentLoader.loadAgentClass(HelloAgent.class.getName(), "Hello!");
}
}
全 #Rafaela [Epic I] #MVP 9.6/4 3 21 | $8313 202205281332 https://youtu.be/jUNpF3a8HPI via @YouTube #MLBB
全 #Rafaela [Epic I] #MVP 9.6/4 3 21 | $8313 202205281332 https://youtu.be/jUNpF3a8HPI via @YouTube #MLBB
2022-07-12
eclipse added hotkey for svn actions are not working.
It may be due to this breaking change in Eclipse 3.6:
EDIT:
Looks like it definitely is. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=309074. Here's the fix:
In the "Customize Perspective" dialog, go to the "Command Groups Availability" tab and check "Team" and "SVN".
In Eclipse Mars.2 (4.5.2) this is under Window->Perspective->Customize Perspective... dialog, "Action Set Availability" tab. (Try to restart Eclipse if it doesn't work after you change it). Customize Perspective dialog screenshot
Right click on current perspective:
2022-07-06
Resolved - @PreUpdate not working in JUnit test.
javax.persistence.PreUpdate
object need to be "dirty" to trigger...
obj.setColumn01("new text);
repo.save(obj);
Solution
As you said, the callback method is called the second time, if the entity is detached or fetched again from DB.
I cannot explain it exactly, but can think of the scenario described here, when no dirty fields are identified before the second save() call and thus the @PreUpdate callback not called. Or it may be simply a bug within your version of EclipseLink.
2022-07-01
Setup local Keycloak for development
https://stackoverflow.com/a/72600716
We are sorry... page not found... error
If config below never in place, will trigger error: Invalid parameter: redirect_uri
Valid Redirect URIs: *
Different of SVNs
Getting(install) SVN feature from
Eclipse Marketplace...
http://subclipse.tigris.org/update_1.6.x